Skip to content

A way to diagnose why regexs not working #206

Description

@caoilte

I have a title regex that used to work and is now failing. I'm struggling to figure out why. One reason might be because the publisher has recently started putting html in their youtube video titles eg

https://www.youtube.com/watch?v=tnI3y8jSebw

"\\| \\#TyskySour" used to work. It now doesn't. It might be a problem with the way podsync handles regexs on html, or it might be I need to adjust my regex to handle the html but it's hard to tell as podsync doesn't log the text of the title that it failed to match. Would it be reasonable to change that?

eg

time="2021-01-07T19:59:23Z" level=info msg="skipping due to mismatch" episode_id=i5KTGbiY68U filter=title

could become

time="2021-01-07T19:59:23Z" level=info msg="skipping due to mismatch on title 'Chris Whitty Warns Of Covid Restrictions NEXT Winter | #TyskySour"  episode_id=i5KTGbiY68U filter=title

Even then it might be hard to spot the character encoding problems, however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions