Skip to content

feat(providers): Add new subtitle provider - kickasssubtitles.#3216

Open
Shadoweee77 wants to merge 1 commit into
morpheus65535:developmentfrom
Shadoweee77:development
Open

feat(providers): Add new subtitle provider - kickasssubtitles.#3216
Shadoweee77 wants to merge 1 commit into
morpheus65535:developmentfrom
Shadoweee77:development

Conversation

@Shadoweee77
Copy link
Copy Markdown

No description provided.

@Shadoweee77
Copy link
Copy Markdown
Author

Hey, hope You can merge it for the next release :)

Copy link
Copy Markdown
Owner

@morpheus65535 morpheus65535 left a comment

Choose a reason for hiding this comment

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

Globally, I find this implementation complicated. I really don't understand why you've implemented async task. Why not a ProviderRetryMixin?


def get_matches(self, video):
"""Get matches for the subtitle."""
matches = set()
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Use self.matches here instead. We use this to log matches in history.

logger.error("Unexpected error creating search task: %s", error)
return None

def _wait_for_task(self, task_id):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why the whole async concept? What's the benefit?

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.

2 participants