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 _get_subtitles #24906

Closed
wants to merge 10 commits into from

Conversation

Mevious
Copy link

@Mevious Mevious commented Apr 20, 2020

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Fixes #22027. This new function parses the player page associated with the video in order to find the links to subtitle files.

Unit tests were failing before I modified this file. Apparently they get caught by Funimation's robot detection. The parser still works when you provide a username/password and cookies file for an active account. I tried my best to not break the tests further than they already are by falling back to no subtitles in every error case. I validated the functionality in Python 3.7 and 2.7, but I was unable to validate python 2.6 due to the discontinuation of TLS 1.0 and 1.1. Is this still a requirement?

@Mevious Mevious changed the title Funimation subtitles Added get_subtitles function to funimation.py Apr 20, 2020
@Mevious Mevious changed the title Added get_subtitles function to funimation.py [Funimation] Added _get_subtitles Apr 23, 2020
@Mevious Mevious mentioned this pull request Apr 25, 2020
@Mevious Mevious changed the title [Funimation] Added _get_subtitles [funimation] Add _get_subtitles Apr 28, 2020
@joshbrown50
Copy link

Any chance that this will get merged?

@joshbrown50
Copy link

Can we get a merge?

@Mevious Mevious mentioned this pull request Jul 8, 2020
@dstftw dstftw force-pushed the master branch 2 times, most recently from 5e26784 to da2069f Compare September 13, 2020 13:50
pukkandan pushed a commit to yt-dlp/yt-dlp that referenced this pull request Jun 23, 2021
nixxo pushed a commit to nixxo/yt-dlp that referenced this pull request Nov 22, 2021
@dirkf dirkf closed this Aug 1, 2023
@dirkf dirkf added the defunct PR source branch is not accessible label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defunct PR source branch is not accessible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Funimation subtitles not parsed?
4 participants