-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Fixed: (Myanonamouse) Allow aborting download if FL token purchase fails #1875
base: develop
Are you sure you want to change the base?
Fixed: (Myanonamouse) Allow aborting download if FL token purchase fails #1875
Conversation
{ | ||
// TODO Find a way to deal with failures due to already being freeleech (either personal or VIP) | ||
// TODO Find a better way to abort downloads | ||
throw new ReleaseUnavailableException( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I see what you mean with ReleaseUnavailableException, I'll have to look into it later.
} | ||
else | ||
{ | ||
// TODO Find a way to deal with failures due to already being freeleech (either personal or VIP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we check the error message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the main way I'm considering doing it, but I usually want to avoid comparing strings in error scenarios, since strings can change on a dime. If there's no better alternatives, it's what I'll roll with, but was hoping someone had a better idea (like maybe knew a way to check FL status via url query strings)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prowlarr/src/NzbDrone.Core/Indexers/Definitions/Orpheus.cs
Lines 95 to 98 in add2988
if (html.Contains("You do not have any freeleech tokens left.") | |
|| html.Contains("You do not have enough freeleech tokens") | |
|| html.Contains("This torrent is too large.") | |
|| html.Contains("You cannot use tokens here")) |
Database Migration
NO
Description
Updating the MAM indexer to allow for multiple freeleech token options; Never, Preferred, Required. Never should never spend any tokens, Preferred should attempt to buy and spend tokens but still download if it fails, and Required should abort the download if buying a token fails. The current behaviour is a binary choice between Never and Preferred.
This is not ready for merging yet, as I have multiple user facing issues. Here's a list of them, I would like some input:
On an unrelated note, are there any servarr code style guidelines that I can read or just follow stylecop in the IDE?
Screenshot (if UI related)
Todos
Issues Fixed or Closed by this PR