1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 09:12:40 +01:00

[README] Adapt code to new style

Next to every IE will download the webpage first anyways.
This commit is contained in:
Philipp Hagemeister 2014-11-25 09:23:44 +01:00
parent 0bbf12239c
commit c920d7f00d

View File

@ -492,9 +492,9 @@ ### Adding support for a new site
def _real_extract(self, url): def _real_extract(self, url):
video_id = self._match_id(url) video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
# TODO more code goes here, for example ... # TODO more code goes here, for example ...
webpage = self._download_webpage(url, video_id)
title = self._html_search_regex(r'<h1>(.*?)</h1>', webpage, 'title') title = self._html_search_regex(r'<h1>(.*?)</h1>', webpage, 'title')
return { return {