Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] "or" operant #1

Open
JohnDarkhorse opened this issue Jul 7, 2021 · 0 comments
Open

[Feature request] "or" operant #1

JohnDarkhorse opened this issue Jul 7, 2021 · 0 comments

Comments

@JohnDarkhorse
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant