diff options
author | Philipp Hagemeister <[email protected]> | 2014-09-28 13:52:21 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-09-28 13:52:21 +0200 |
commit | 4bc77c8417ca0340d09dcebb311d06aa7d5ba0ac (patch) | |
tree | 56c4060956972b2d5327d70379887d0d57214dfb /README.md | |
parent | 22dd3fad8623472cfe681fdfbaa346e0c8f5fb84 (diff) | |
download | youtube-dl-4bc77c8417ca0340d09dcebb311d06aa7d5ba0ac.tar.gz youtube-dl-4bc77c8417ca0340d09dcebb311d06aa7d5ba0ac.zip |
[README] Use _match_id helper function
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -442,8 +442,6 @@ If you want to add support for a new site, you can follow this quick list (assum # coding: utf-8 from __future__ import unicode_literals - import re - from .common import InfoExtractor @@ -466,8 +464,7 @@ If you want to add support for a new site, you can follow this quick list (assum } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') + video_id = self._match_id(url) # TODO more code goes here, for example ... webpage = self._download_webpage(url, video_id) |