From: Philipp Hagemeister Date: Mon, 2 Feb 2015 19:43:02 +0000 (+0100) Subject: [ntvru] Rename from NTV to clarify the difference between n-tv.de and ntv.ru X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=3fd45e03bf86c2ad2ef17362452a9a745dc10755;hp=869b4aeff4239b02ff8f699741902fe7f91b999a;p=youtube-dl [ntvru] Rename from NTV to clarify the difference between n-tv.de and ntv.ru --- diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py index dabf86ec8..bd707e028 100644 --- a/youtube_dl/extractor/__init__.py +++ b/youtube_dl/extractor/__init__.py @@ -317,7 +317,7 @@ from .nrk import ( NRKIE, NRKTVIE, ) -from .ntv import NTVIE +from .ntvru import NTVRuIE from .nytimes import NYTimesIE from .nuvid import NuvidIE from .oktoberfesttv import OktoberfestTVIE diff --git a/youtube_dl/extractor/ntv.py b/youtube_dl/extractor/ntv.py deleted file mode 100644 index ee740cd9c..000000000 --- a/youtube_dl/extractor/ntv.py +++ /dev/null @@ -1,148 +0,0 @@ -# encoding: utf-8 -from __future__ import unicode_literals - -import re - -from .common import InfoExtractor -from ..utils import ( - unescapeHTML -) - - -class NTVIE(InfoExtractor): - _VALID_URL = r'http://(?:www\.)?ntv\.ru/(?P.+)' - - _TESTS = [ - { - 'url': 'http://www.ntv.ru/novosti/863142/', - 'info_dict': { - 'id': '746000', - 'ext': 'flv', - 'title': 'Командующий Черноморским флотом провел переговоры в штабе ВМС Украины', - 'description': 'Командующий Черноморским флотом провел переговоры в штабе ВМС Украины', - 'duration': 136, - }, - 'params': { - # rtmp download - 'skip_download': True, - }, - }, - { - 'url': 'http://www.ntv.ru/video/novosti/750370/', - 'info_dict': { - 'id': '750370', - 'ext': 'flv', - 'title': 'Родные пассажиров пропавшего Boeing не верят в трагический исход', - 'description': 'Родные пассажиров пропавшего Boeing не верят в трагический исход', - 'duration': 172, - }, - 'params': { - # rtmp download - 'skip_download': True, - }, - }, - { - 'url': 'http://www.ntv.ru/peredacha/segodnya/m23700/o232416', - 'info_dict': { - 'id': '747480', - 'ext': 'flv', - 'title': '«Сегодня». 21 марта 2014 года. 16:00 ', - 'description': '«Сегодня». 21 марта 2014 года. 16:00 ', - 'duration': 1496, - }, - 'params': { - # rtmp download - 'skip_download': True, - }, - }, - { - 'url': 'http://www.ntv.ru/kino/Koma_film', - 'info_dict': { - 'id': '758100', - 'ext': 'flv', - 'title': 'Остросюжетный фильм «Кома»', - 'description': 'Остросюжетный фильм «Кома»', - 'duration': 5592, - }, - 'params': { - # rtmp download - 'skip_download': True, - }, - }, - { - 'url': 'http://www.ntv.ru/serial/Delo_vrachey/m31760/o233916/', - 'info_dict': { - 'id': '751482', - 'ext': 'flv', - 'title': '«Дело врачей»: «Деревце жизни»', - 'description': '«Дело врачей»: «Деревце жизни»', - 'duration': 2590, - }, - 'params': { - # rtmp download - 'skip_download': True, - }, - }, - ] - - _VIDEO_ID_REGEXES = [ - r'