RSS Downloader tips requested. Suspect I'll need to use regex.

Other platforms, generic questions.

Moderators: Moderator, Global Moderator

Post Reply
bastardsheep
Newbie
Newbie
Posts: 6
Joined: Thu Jul 21, 2016 6:58 am

RSS Downloader tips requested. Suspect I'll need to use regex.

Post by bastardsheep » Tue Oct 29, 2019 3:06 am

I've noticed that by default the RSS Downloaded picks up on the words anywhere in the filename.

So if I have"See*720p*", it'll match that regardless of whether "see" is how the filename starts or whether "see" is towards the back of the filename.

Is there a way to get it so it only matches from the start of the filename, or would I have to do regex for that? And if so, can anyone help me out with a regex that would capture only the upcoming tv show "see" and only in 720p?

User avatar
Peter
Administrator
Administrator
Posts: 1635
Joined: Wed Jul 07, 2010 6:14 pm

Re: RSS Downloader tips requested. Suspect I'll need to use regex.

Post by Peter » Tue Oct 29, 2019 7:20 am

Well, regex by itself, will only start from the beginning unless specified.
For example:

See.*720p.*

.* means . can be any character, * can be any number. so it can be anything between See+720p and after 720p.
But it must begin with See.

My tips for regex:
- Copy out a few filenames to notepad or something
- Google for "regex tester online", check which site tickles your fancy
- paste in your filenames to see if they'll behave, and also insert some other examples that SHOULD NOT trigger
- see if the regex I posted above, or the one you come up with, works

regex looks scary, but the very basic ones like the one you seek are super simple.

bastardsheep
Newbie
Newbie
Posts: 6
Joined: Thu Jul 21, 2016 6:58 am

Re: RSS Downloader tips requested. Suspect I'll need to use regex.

Post by bastardsheep » Tue Oct 29, 2019 7:32 am

Excellent, thanks for that. Glad it can be done via regex in such an easy to understand way. I've modified the simpler of my entries, the ones that were single word shows and most likely to trigger false positives. I'll see how it goes.

bastardsheep
Newbie
Newbie
Posts: 6
Joined: Thu Jul 21, 2016 6:58 am

Re: RSS Downloader tips requested. Suspect I'll need to use regex.

Post by bastardsheep » Tue Nov 05, 2019 10:12 pm

Turns out it's not as simple as switching over to Regex.

Overnight my regex filter for "evil.*720p.*" picked up two episodes of "the.devil.next.door.sXXeXX.blah.720p.blah". So even regex doesn't start from the front per se. I'm going to have to add "next.*door.*" in to my "and doesn't contain" filters for that show.

User avatar
Peter
Administrator
Administrator
Posts: 1635
Joined: Wed Jul 07, 2010 6:14 pm

Re: RSS Downloader tips requested. Suspect I'll need to use regex.

Post by Peter » Thu Nov 07, 2019 7:32 pm

haha, yea that's why you should test on "regexr" on some other online regex site with good, near good, and bad samples.
regex supports "starts with" too.

see: https://javascript.info/regexp-anchors

good luck!

Post Reply