aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-19 10:10:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-19 10:10:05 +0100
commitc511f13f223d843dd4affc30c76bf333a6863227 (patch)
treedb532174cfc87d007e1469068b426464c2bd7314 /youtube_dl/extractor
parentfdb2ed7455d509a5f0b17ad5c1d721d5484bde8f (diff)
[ndtv] Modernize
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ndtv.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/ndtv.py b/youtube_dl/extractor/ndtv.py
index 95e7d63aa..2a1ca80df 100644
--- a/youtube_dl/extractor/ndtv.py
+++ b/youtube_dl/extractor/ndtv.py
@@ -27,9 +27,7 @@ class NDTVIE(InfoExtractor):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
-
+ video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
filename = self._search_regex(