[fusion] Add support for fusion.tv
authorVietTPham <pham.t.viet@gmail.com>
Sat, 17 Feb 2018 13:54:52 +0000 (05:54 -0800)
committerSergey M <dstftw@gmail.com>
Sat, 17 Feb 2018 13:54:52 +0000 (20:54 +0700)
youtube_dl/extractor/fusion.py

index ede729b5262c286c347b544fe7493bea020b5afd..25e284d46f228151447b88c20811d4e37742a0d6 100644 (file)
@@ -5,9 +5,9 @@ from .ooyala import OoyalaIE
 
 
 class FusionIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?fusion\.net/video/(?P<id>\d+)'
+    _VALID_URL = r'https?://(?:www\.)?fusion\.(?:net|tv)/video/(?P<id>\d+)'
     _TESTS = [{
-        'url': 'http://fusion.net/video/201781/u-s-and-panamanian-forces-work-together-to-stop-a-vessel-smuggling-drugs/',
+        'url': 'http://fusion.tv/video/201781/u-s-and-panamanian-forces-work-together-to-stop-a-vessel-smuggling-drugs/',
         'info_dict': {
             'id': 'ZpcWNoMTE6x6uVIIWYpHh0qQDjxBuq5P',
             'ext': 'mp4',
@@ -20,7 +20,7 @@ class FusionIE(InfoExtractor):
         },
         'add_ie': ['Ooyala'],
     }, {
-        'url': 'http://fusion.net/video/201781',
+        'url': 'http://fusion.tv/video/201781',
         'only_matching': True,
     }]