-
Notifications
You must be signed in to change notification settings - Fork 478
rutracker - always use https #1703
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
Conversation
|
Why make it optional? Why not always use https? |
I check now - rutracker always redirect to https. |
|
|
||
| class RutrackerAuth(AuthBase): | ||
| """Supports downloading of torrents from 'rutracker' tracker | ||
| if you pass cookies (CookieJar) to constructor then authentication will be bypassed and cookies will be just set |
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.
This line doesn't look longer than 120 chars, so why the linebreak?
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.
revert it
flexget/plugins/sites/rutracker.py
Outdated
| for entry in task.accepted: | ||
| if entry['url'].startswith('http://rutracker.org/forum/viewtopic.php'): | ||
| if entry['url'].startswith( | ||
| '{}/forum/viewtopic.php'.format(BASE_URL)): |
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.
Same here. Another weird linebreak.
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.
remove linebreak
flexget/plugins/sites/rutracker.py
Outdated
|
|
||
| def __call__(self, r): | ||
| url = r.url | ||
| id = re.findall(r'\d+', url)[0] |
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.
While you're already in there, you should change this variable name to something other than id.
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.
change to t_id (thread_id)
|
Changes are made |
Motivation for changes:
Sometimes rutracker.org available only throw https
Detailed changes:
Addressed issues:
Config usage if relevant (new plugin or updated schema):
Log and/or tests output (preferably both):