-
Notifications
You must be signed in to change notification settings - Fork 36
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
Version constraining - Multiple != #363
Comments
I ran into this limitation the other day. Possible syntaxes if someone wanted to extend the versions:
'&&': [
{'!=': '2023.03.03'},
{'!=': '2023.03.04'},
] versions: {'!=': ['2023.03.03', '2023.03.04'} versions: {'∉': ['2023.03.03', '2023.03.04'} versions: {'not in': ['2023.03.03', '2023.03.04'} You could do this as a gross but functional workaround: sources:
- type: archive
url: https://github.com/yt-dlp/yt-dlp/releases/download/2023.02.17/yt-dlp.tar.gz
sha256: 81f607b8754b1bc67e6592a4e316c015d720e7118757a5afd4ef2aaf37d2ef29
x-checker-data:
type: json
url: https://api.github.com/repos/yt-dlp/yt-dlp/releases
version-query: map(select( .draft | not )) | map(select(.tag_name != "2023.03.03" and .tag_name != "2023.03.04")) | .[0].tag_name
url-query: "https://github.com/yt-dlp/yt-dlp/releases/download/" + $version + "/yt-dlp.tar.gz" YAML quoting left as an exercise to the reader, I only tested these at the |
How about versions:
'<': 2023.03.03
'>': 2023.03.04 ? |
Thanks for the reply. I did try that initially, but it returns the latest version, I think because https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest only returns one version, I'm guessing this is because
;
|
Thinking again – I don't think the |
Is there any way to ignore 2 release versions, but allow older / newer releases.
I'll use the example of https://github.com/flathub/io.mpv.Mpv below:
yt-dlp's versions 2023.03.04 (the latest version) and 2023.03.03 have issues, the previous version before that (2023.02.17) works fine.
This doesn't work :
versions: {'!=': '2023.03.03', '!=': '2023.03.04'}
(since we can't have multiple not equals)Being able to have multiple not equals or regex would be nice, like this:
versions: {'!=': '2023.03.0[34]'}
Or maybe there's another way?
The text was updated successfully, but these errors were encountered: