Skip to content

myepisodes refactor#1374

Merged
cvium merged 5 commits intoFlexget:developfrom
VectrexGamer:develop
Nov 5, 2016
Merged

myepisodes refactor#1374
cvium merged 5 commits intoFlexget:developfrom
VectrexGamer:develop

Conversation

@VectrexGamer
Copy link
Copy Markdown
Contributor

Motivation for changes:

Flexget was bombing when it attempted to verify a succesful login to the myepisodes.com website

Detailed changes:

  • I added an explicit translation of the return page to fix it

…empted to verify a succesful login. There was something wrong with the character set of the myepisodes page preventing it from working. I added an explicit translation of the return page to fix it.
@cvium
Copy link
Copy Markdown
Contributor

cvium commented Aug 27, 2016

I think it would be better to refactor that plugin to use requests (http://docs.python-requests.org/en/master/) instead.

…ome of the larger methods into more readable pieces. Updated the URLs being used. They we incorrect in some cases and the authentication was not being done over SSL.
@VectrexGamer
Copy link
Copy Markdown
Contributor Author

I refactored to requests as suggested, but now the CI build is failing. I'm Not sure what happened.

self.http_session = self._login(config)

except plugin.PluginWarning as w:
log.warning(str(w))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No need to use str(). It will do the conversion for you.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will update all of these. There are a few.

… converting exceptions with str() when logging. Added unicode compatibility import back in. Removed a , cough, semi-colon. Minor PEP8 compliance changes.
@cvium cvium changed the title Fixed a bug in the myepisodes plugin. Flexget was bombing when it att… myepisodes refactor Sep 9, 2016


try:
from flexget.plugins.internal.api_tvdb import lookup_series
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should remove this import and use plugin.get_plugin_by_name('api_tvdb').instance.lookup_series where applicable instead. It will raise a dependencyerror if it's not found.

@liiight
Copy link
Copy Markdown
Member

liiight commented Oct 19, 2016

any progress on this?

@cvium
Copy link
Copy Markdown
Contributor

cvium commented Nov 5, 2016

I don't remember anything about this PR, but all my comments seem to have been addressed. Good work.

@cvium cvium merged commit 9438849 into Flexget:develop Nov 5, 2016
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

Successfully merging this pull request may close these issues.

3 participants