[fxnetworks] Add support for https theplatform URLs (closes #16125)
authorRay Douglass <3107146+raydouglass@users.noreply.github.com>
Wed, 11 Apr 2018 13:11:24 +0000 (09:11 -0400)
committerSergey M <dstftw@gmail.com>
Wed, 11 Apr 2018 13:11:24 +0000 (20:11 +0700)
youtube_dl/extractor/fxnetworks.py

index 37549fb01ccfc05fb4a642f948ee70227588f6e0..00e67426b951b00d797e4a7641a037fb607e2963 100644 (file)
@@ -41,7 +41,7 @@ class FXNetworksIE(AdobePassIE):
         if 'The content you are trying to access is not available in your region.' in webpage:
             self.raise_geo_restricted()
         video_data = extract_attributes(self._search_regex(
-            r'(<a.+?rel="http://link\.theplatform\.com/s/.+?</a>)', webpage, 'video data'))
+            r'(<a.+?rel="https?://link\.theplatform\.com/s/.+?</a>)', webpage, 'video data'))
         player_type = self._search_regex(r'playerType\s*=\s*[\'"]([^\'"]+)', webpage, 'player type', default=None)
         release_url = video_data['rel']
         title = video_data['data-title']