1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 00:07:49 +00:00

[theoperaplatform] Rename, fix _VALID_URL and fix test

This commit is contained in:
Sergey M․ 2016-10-16 00:24:06 +07:00
parent 9c4258bcec
commit 4b492e3579
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -410,13 +410,13 @@ class ArteTVEmbedIE(ArteTVPlus7IE):
return self._extract_from_json_url(json_url, video_id, lang) return self._extract_from_json_url(json_url, video_id, lang)
class ArteTVOperaPlatformIE(ArteTVPlus7IE): class TheOperaPlatformIE(ArteTVPlus7IE):
IE_NAME = 'arte.tv:operaplatform' IE_NAME = 'theoperaplatform'
_VALID_URL = r'https?://www.theoperaplatform.eu/(?P<lang>fr|de|en|es)/(?P<id>[^/?#&]+)' _VALID_URL = r'https?://(?:www\.)?theoperaplatform\.eu/(?P<lang>fr|de|en|es)/(?P<id>[^/?#&]+)'
_TESTS = [{ _TESTS = [{
'url': 'http://www.theoperaplatform.eu/de/opera/verdi-otello', 'url': 'http://www.theoperaplatform.eu/de/opera/verdi-otello',
'md5': '80f5d3fc97957b5dbfc1ddfde93b8098', 'md5': '970655901fa2e82e04c00b955e9afe7b',
'info_dict': { 'info_dict': {
'id': '060338-009-A', 'id': '060338-009-A',
'ext': 'mp4', 'ext': 'mp4',