diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-27 08:58:34 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-27 09:00:08 +0100 |
commit | aed617e311b95d771e10f48cc8dcde25d7816224 (patch) | |
tree | 05aff075d388d420aacfa228fe8d04fd61bdeee3 /youtube_dl | |
parent | 0fa67c1d686c1c25b467906307cafefa885c4a80 (diff) |
[amcnetworks] improve auth only video detection(closes #27548)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/amcnetworks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/amcnetworks.py b/youtube_dl/extractor/amcnetworks.py index 12b6de0bf..b8027bbca 100644 --- a/youtube_dl/extractor/amcnetworks.py +++ b/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( |