qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.14k stars 3.9k forks source link

RSS Download Rules Save to a Different Directory not working #12752

Open gylgamesh opened 4 years ago

gylgamesh commented 4 years ago

qBittorrent version and Operating System

4.2.5 Windows 7 x86 (6.1.760x)

What is the problem

The matching RSS Articles that should be downloaded in the set Directory are being found and displayed in the Matching RSS Articles, but not downloaded in the specified folder anymore, and the Last Match: N days is also not the date of the last match, but of the last match that was downloaded in the set Directory.

What is the expected behavior

The matching RSS Articles should always be downloaded in the Directory set for them.

Steps to reproduce

  1. Tools > Options > RSS > Edit auto downloading rules...
  2. Rule Definition : Must contain: specified title and resolution that narrows the matching articles to the ones wanted.
  3. Apply the rule to a preexisting RSS feed.
  4. Make sure that all the rules are not intersecting possible matches with one another.

Extra info

This feature partially worked in earlier versions, maybe qBT 4.2.2 and 4.2.3, but even those versions had a bug: if two (or more) similar articles were in the same update of the RSS feed, one was downloaded in the correct folder, but the others not.

Many thanks for looking into this.

gylgamesh commented 4 years ago

I also want to ask about the examples/syntax in:

Tools > Options > RSS > Download REPACK/PROPER episodes > Filters

which are:

s(\d+)e(\d+) (\d+)x(\d+) (\d{4}[.-]\d{1,2}[.-]\d{1,2}) (\d{1,2}[.-]\d{1,2}[.-]\d{4})

Are those examples, or the syntax for the Filters: explained in detail anywhere?

Thanks.

FranciscoPombal commented 4 years ago

@gylgamesh

I also want to ask about the examples/syntax in:

These are regular expressions, also known as regex and regexp: https://en.wikipedia.org/wiki/Regular_expression.

Beware that different regex "flavors" have different feature sets (though they share most common features) - example: https://stackoverflow.com/a/3226376

qBittorrent uses Qt's regex engine of course (for RSS filter syntax, specifically, it uses the newer QRegularExpression API in Qt5). Here are some details about it: https://doc.qt.io/qt-5/qregularexpression.html#details

Basically, it implements Perl-compatible regular expressions (PCRE), which is probably the most famous regex flavor and is widely documented. The linked page also links you to good authoritative references on the subject.

You can experiment with regexes in a site like https://regexr.com/ Python has a very good tutorial (programming focused of course): https://docs.python.org/3/howto/regex.html. And here is the documentation for the module: https://docs.python.org/3/library/re.html However, I don't think they are fully PCRE compatible unfortunately. Still, a good way to learn if you already know Python.

luzpaz commented 11 months ago

Dupes:

12695

15728

Are these all dupes of #12957