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

[funimation] Add new extractor #7767

Closed
wants to merge 1 commit into from
Closed

[funimation] Add new extractor #7767

wants to merge 1 commit into from

Conversation

Slyneth
Copy link

@Slyneth Slyneth commented Dec 5, 2015

No description provided.


import re

class FunimationBaseIE(InfoExtractor):
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's no need to create a base class if there's only one derived class.

Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the purpose of the base class if it's only inherited once?

@dstftw
Copy link
Collaborator

dstftw commented Dec 6, 2015

Commits should be squashed to a single commit.

except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
raise ExtractorError('%s is not available in your region.' % self.IE_NAME, expected=True)

Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't check whether login succeeded or not.

Copy link
Author

Choose a reason for hiding this comment

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

Alright, fixed both. Now, how could I do this squashing? I am doing everything from web expect testing locally.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You should consult some git manual.

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.

None yet

3 participants