projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa67c1
)
[amcnetworks] improve auth only video detection(closes #27548)
author
Remita Amine
<remitamine@gmail.com>
Sun, 27 Dec 2020 07:58:34 +0000
(08:58 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 27 Dec 2020 08:00:08 +0000
(09:00 +0100)
youtube_dl/extractor/amcnetworks.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/amcnetworks.py
b/youtube_dl/extractor/amcnetworks.py
index 12b6de0bf61b6f32b7109d7ba97e00376cf55f52..b8027bbca16f0ff4a38806f4f588a98609232025 100644
(file)
--- 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(