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

Get speed.cd login URL instead of looping a list of URLs #3497

Merged
merged 3 commits into from
Dec 19, 2017

Conversation

fernandog
Copy link
Contributor

They keep changing login URL (post)

@duramato

@codecov-io
Copy link

codecov-io commented Dec 19, 2017

Codecov Report

Merging #3497 into develop will decrease coverage by 0.01%.
The diff coverage is 4.76%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3497      +/-   ##
===========================================
- Coverage    32.98%   32.97%   -0.02%     
===========================================
  Files          275      275              
  Lines        34810    34894      +84     
===========================================
+ Hits         11483    11505      +22     
- Misses       23327    23389      +62
Impacted Files Coverage Δ
medusa/providers/torrent/html/speedcd.py 29.12% <4.76%> (-3.49%) ⬇️
medusa/subtitles.py 52.11% <0%> (-3.59%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1cd4e3...5783ef2. Read the comment docs.

{'url': login_url})
continue
if not (self.urls['login_post'] and self.login_url()):
log.debug('Unable get login URL')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to get login url

log.debug('Unable to connect to provider using login URL: {url}',
{'url': self.urls['login_post']})
return False
if re.search('Incorrect username or Password. Please try again.', response.text):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need a regex for this? Can't just do 'sring' in response.text ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No ideia. I just removed the for loop. need to check history

@fernandog fernandog merged commit bb771f3 into develop Dec 19, 2017
@fernandog fernandog deleted the feature/speedcd_login branch December 19, 2017 14:47
@fernandog fernandog added this to the 0.1.21 milestone Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants