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

[tele5] Add new extractor (closes #7805) #7922

Closed
wants to merge 3 commits into from
Closed

Conversation

bit
Copy link
Contributor

@bit bit commented Dec 20, 2015

No description provided.

[tele5] added support for different formats

def _get_video_url(self, thumbnail, entity_id, video_js_url):
video_js = self._download_webpage(video_js_url, None)
match = re.compile(r'''\\"flavorParamsId\\":(\d),\\"width\\":(\d+),\\"height\\":(\d+),\\"bitrate\\":(\d+),\\"frameRate\\":(\d+),.+?,\\"id\\":\\"(\w+)\\",.+?,\\"size\\":(\d+),''').findall(video_js)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use js_to_json and parse_json.

@yan12125
Copy link
Collaborator

http://www.tele5.de/re-play/filme/flying-swords-of-dragon-gate.html is gone, and lots of other videos on tele5.com has geolocation restrictions ("We're sorry, this content is only available in certain countries.") Do you have another example URL?

@yan12125
Copy link
Collaborator

yan12125 commented Apr 9, 2016

Since #8497 landed, please move changes in youtube_dl/extractors/__init__.py to youtube_dl/extractors/extractors.py. Check step 5 of the new developer instructions for more information.

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