shell-rss-torrent icon indicating copy to clipboard operation
shell-rss-torrent copied to clipboard

[Feature request] "or" operant

Open JohnDarkhorse opened this issue 2 years ago • 0 comments

Would it be possible to add an "or" operant to the search queries?

Something like

    <multi>
    <starts-with ignore-case="1">Cowboy Bob Show</starts-with>
    <possible ignore-case="1">HDTV</possible>
    <possible ignore-case="1">SDTV</possible>
    </multi>

The preceding would download the first "Cowboy Bob Show" found with either "HDTV" or "SDTV" in its description.

    <multi>
    <starts-with ignore-case="1">Cooking with Cookie</starts-with>
    <if-present ignore-case="1">XViD</if-present>
    <if-present ignore-case="1">x264</if-present>
    </multi>

The preceding would download the first "Cooking with Cookie" found with either "XViD" or "x264" in its description.

    <multi>
    <starts-with ignore-case="1">Police Drama</starts-with>
    <may-have ignore-case="1">GroupName1</may-have>
    <may-have ignore-case="1">GroupName2</may-have>
    </multi>

The preceding would download the first "Police Drama" found from either "GroupName1" or "GroupName2"

    <multi>
    <starts-with ignore-case="1">The Epidermis Adventures</starts-with>
    <optional ignore-case="1">720p</optional>
    <optional ignore-case="1">1080p</optional>
    </multi>

The preceding would download the first "The Epidermis Adventures" found with "720p" or "1080p" in its description.

Basically, I'm requesting similar functionality to the regex (choice1|choice2)

<optional>, <may-have>, <if-present>, <possible> are just some ideas I spitballed up.

 

Explanation: This has nothing to do with your fine script - it works an absolute treat!

The issue arises when the RSS feeds aren't properly propagated and the particular TV show I've got scheduled in shell-rss-torrent doesn't appear in the feed SRT is set to watch, or (I've seen this more than once) the publishing group "takes the day (or week) off"

Having an "or" condition where it grabs the first title it finds from multiple vectors would add much to this script.

 

I just want to watch the shows - I'm not married to any particular group or resolution (but I have a playstation, so I am particular about the playability of the media)

JohnDarkhorse avatar Jul 07 '21 13:07 JohnDarkhorse