Browse Source

[amcnetworks] improve auth only video detection(closes #27548)

Remita Amine 4 years ago
parent
commit
aed617e311
1 changed files with 2 additions and 1 deletions
  1. 2 1
      youtube_dl/extractor/amcnetworks.py

+ 2 - 1
youtube_dl/extractor/amcnetworks.py

@@ -80,7 +80,8 @@ class AMCNetworksIE(ThePlatformIE):
         title = theplatform_metadata['title']
         rating = try_get(
             theplatform_metadata, lambda x: x['ratings'][0]['rating'])
-        if properties.get('videoCategory') == 'TVE-Auth':
+        video_category = properties.get('videoCategory')
+        if video_category and video_category.endswith('-Auth'):
             resource = self._get_mvpd_resource(
                 requestor_id, title, video_id, rating)
             query['auth'] = self._extract_mvpd_auth(