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?
RSS Downloader tips requested. Suspect I'll need to use regex.
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
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.
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.
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
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.
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
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.
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.
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
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!
regex supports "starts with" too.
see: https://javascript.info/regexp-anchors
good luck!
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
I have exactly the same issue for the same name. Did you fix it and if so what syntax did you use please?bastardsheep wrote: 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.
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
regular expresions aren't anchored by default so you would need:
"^evil.*720p" if you want it to start at the beginning
"\bevil.*720p" if you simply don't want it to start in the middle of a word
"^evil.*720p" if you want it to start at the beginning
"\bevil.*720p" if you simply don't want it to start in the middle of a word
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
Thanks BobSideshowBob wrote: Fri Apr 24, 2020 11:25 am regular expresions aren't anchored by default so you would need:
"^evil.*720p" if you want it to start at the beginning
"\bevil.*720p" if you simply don't want it to start in the middle of a word
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
^Evil.S\d.*1080p.*265
^Evil Starts with Evil
. Any Character (' ' or '.')
S from S02e03
\d any number (ensures "Evil.Sausages" would not match)
.* any number of any character
1080p desired resolution
.* any number of any char
265 desired codec
^Evil Starts with Evil
. Any Character (' ' or '.')
S from S02e03
\d any number (ensures "Evil.Sausages" would not match)
.* any number of any character
1080p desired resolution
.* any number of any char
265 desired codec
-
- Newbie
- Posts: 1
- Joined: Tue Aug 27, 2024 2:08 am
Re: RSS Downloader tips requested. Suspect I'll need to use regex.
Setting Up RSS Filters in qBittorrent
General Steps:
Open qBittorrent: Launch the application on your computer.
Go to RSS Downloader: Click on the "RSS" icon in the toolbar or navigate to View > RSS Reader.
Add a New Rule: In the RSS Downloader window, click on the "New Rule" button to create a new filter.
Enter the Regular Expression:
In the "Name" field, give your filter a descriptive name.
In the "Must contain" field, enter your regular expression. Make sure to check the "Use regular expressions" box to enable regex matching.
Configure Additional Options: Specify other criteria like "Must not contain," "Episode filter," and "Save to" directory.
Save the Rule: Click "OK" to save your new RSS filter rule.
Specific Regular Expressions:
All Episodes from Seasons 1 to 3:
All Episodes from Season 7 Onwards:
All Episodes from Season 20 Onwards:
All Episodes from Season 3 Onwards:
All Episodes from Season 2 Onwards:
All Episodes from Season 4 Onwards:
All Episodes from Season 5 Onwards:
All Episodes from Season 6 Onwards:
Additional Filters:
Include Specific Uploader:
Include 1080p Quality:
Include Specific Torrent Sites:
Additional Settings:
Smart Episode Filter: Enable this to avoid downloading duplicate episodes.
Ignore Subsequent Matches for X Days: Set this to a number of days (e.g., 7) to prevent downloading the same episode multiple times within that period.
Advanced Tips for RSS Filters
Combining Multiple Filters:
You can combine multiple criteria in a single regular expression using the | (OR) operator. For example, to match either "1080p" or "720p" quality, you can use:
Excluding Specific Patterns:
Use the "Must not contain" field to exclude torrents with certain keywords. For example, if you want to exclude torrents with "CAM" or "TS" (common for low-quality releases), you can add these keywords to the "Must not contain" field.
Episode Filter Syntax:
The episode filter can be very specific. For example, 1-10 will match episodes 1 through 10, and 1,3,5 will match episodes 1, 3, and 5. This can be useful if you only want to download certain episodes.
Using Wildcards:
The .* wildcard in regular expressions matches any character (except for a newline) zero or more times. This is useful for matching any text between keywords. For example, Silo.*1080p will match "Silo" followed by any text and then "1080p".
Case Sensitivity:
Regular expressions in qBittorrent are case-sensitive by default. If you need to perform a case-insensitive match, you can use the (?i) flag at the beginning of your regex. For example:
Testing Your Regular Expressions:
Before applying your regular expressions in qBittorrent, you can test them using online regex testers like regex101. This helps ensure your patterns match exactly what you expect.
Backup and Restore Filters:
You can export your RSS filter rules to a file and import them later. This is useful for backing up your settings or transferring them to another installation of qBittorrent. Go to Tools > Options > RSS and use the "Export" and "Import" buttons.
Regular Expression Resources:
If you're new to regular expressions or want to learn more, there are many resources available online. Websites like RegexOne and Regular-Expressions.info offer tutorials and examples.
Example of a Comprehensive Filter
Here’s an example of a comprehensive filter that matches "Silo" episodes from season 5 onwards, in 1080p quality, from specific uploaders and sites:
Silo.*S0[5-9]E[0-9]+|S1[0-9]E[0-9]+.*1080p.*(Uploader1|Uploader2).*(example1\.com|example2\.com)
This regex will match:
"Silo" episodes from season 5 onwards.
Only 1080p quality.
Uploaded by "Uploader1" or "Uploader2".
From "example1.com" or "example2.com".
I hope this Helps people. I had to sit here and ask copilot millions of diiferent questions to comup with this step by step regex regular expresion guide. in the screenshots put everything like I have it. the regular expression does all the work.
General Steps:
Open qBittorrent: Launch the application on your computer.
Go to RSS Downloader: Click on the "RSS" icon in the toolbar or navigate to View > RSS Reader.
Add a New Rule: In the RSS Downloader window, click on the "New Rule" button to create a new filter.
Enter the Regular Expression:
In the "Name" field, give your filter a descriptive name.
In the "Must contain" field, enter your regular expression. Make sure to check the "Use regular expressions" box to enable regex matching.
Configure Additional Options: Specify other criteria like "Must not contain," "Episode filter," and "Save to" directory.
Save the Rule: Click "OK" to save your new RSS filter rule.
Specific Regular Expressions:
All Episodes from Seasons 1 to 3:
All Episodes from Season 7 Onwards:
All Episodes from Season 20 Onwards:
All Episodes from Season 3 Onwards:
All Episodes from Season 2 Onwards:
All Episodes from Season 4 Onwards:
All Episodes from Season 5 Onwards:
All Episodes from Season 6 Onwards:
Additional Filters:
Include Specific Uploader:
Include 1080p Quality:
Include Specific Torrent Sites:
Additional Settings:
Smart Episode Filter: Enable this to avoid downloading duplicate episodes.
Ignore Subsequent Matches for X Days: Set this to a number of days (e.g., 7) to prevent downloading the same episode multiple times within that period.
Advanced Tips for RSS Filters
Combining Multiple Filters:
You can combine multiple criteria in a single regular expression using the | (OR) operator. For example, to match either "1080p" or "720p" quality, you can use:
Excluding Specific Patterns:
Use the "Must not contain" field to exclude torrents with certain keywords. For example, if you want to exclude torrents with "CAM" or "TS" (common for low-quality releases), you can add these keywords to the "Must not contain" field.
Episode Filter Syntax:
The episode filter can be very specific. For example, 1-10 will match episodes 1 through 10, and 1,3,5 will match episodes 1, 3, and 5. This can be useful if you only want to download certain episodes.
Using Wildcards:
The .* wildcard in regular expressions matches any character (except for a newline) zero or more times. This is useful for matching any text between keywords. For example, Silo.*1080p will match "Silo" followed by any text and then "1080p".
Case Sensitivity:
Regular expressions in qBittorrent are case-sensitive by default. If you need to perform a case-insensitive match, you can use the (?i) flag at the beginning of your regex. For example:
Testing Your Regular Expressions:
Before applying your regular expressions in qBittorrent, you can test them using online regex testers like regex101. This helps ensure your patterns match exactly what you expect.
Backup and Restore Filters:
You can export your RSS filter rules to a file and import them later. This is useful for backing up your settings or transferring them to another installation of qBittorrent. Go to Tools > Options > RSS and use the "Export" and "Import" buttons.
Regular Expression Resources:
If you're new to regular expressions or want to learn more, there are many resources available online. Websites like RegexOne and Regular-Expressions.info offer tutorials and examples.
Example of a Comprehensive Filter
Here’s an example of a comprehensive filter that matches "Silo" episodes from season 5 onwards, in 1080p quality, from specific uploaders and sites:
Silo.*S0[5-9]E[0-9]+|S1[0-9]E[0-9]+.*1080p.*(Uploader1|Uploader2).*(example1\.com|example2\.com)
This regex will match:
"Silo" episodes from season 5 onwards.
Only 1080p quality.
Uploaded by "Uploader1" or "Uploader2".
From "example1.com" or "example2.com".
I hope this Helps people. I had to sit here and ask copilot millions of diiferent questions to comup with this step by step regex regular expresion guide. in the screenshots put everything like I have it. the regular expression does all the work.
- Attachments
-
- Screenshot 2.jpg (144.97 KiB) Viewed 8883 times
-
- Screenshot 1.jpg (159.52 KiB) Viewed 8883 times