diff options
author | Remita Amine <remitamine@gmail.com> | 2016-08-14 17:55:56 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-08-14 18:04:50 +0100 |
commit | 1fd6e30988f44d372c7112c2d5e44c0d5cdbc4ed (patch) | |
tree | 2492ccb0e0806b36cbe933c9a64f6469c1c104a5 /youtube_dl/extractor/aenetworks.py | |
parent | 884cdb6cd9c872ea68a03341e462b58e51fba58a (diff) |
[adobepass] create separate class for adobe pass authentication
Diffstat (limited to 'youtube_dl/extractor/aenetworks.py')
-rw-r--r-- | youtube_dl/extractor/aenetworks.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/aenetworks.py b/youtube_dl/extractor/aenetworks.py index 8f53050c9..6adb6d824 100644 --- a/youtube_dl/extractor/aenetworks.py +++ b/youtube_dl/extractor/aenetworks.py @@ -109,7 +109,10 @@ class AENetworksIE(AENetworksBaseIE): info = self._parse_theplatform_metadata(theplatform_metadata) if theplatform_metadata.get('AETN$isBehindWall'): requestor_id = self._DOMAIN_TO_REQUESTOR_ID[domain] - resource = '<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>%s</title><item><title>%s</title><guid>%s</guid><media:rating scheme="urn:v-chip">%s</media:rating></item></channel></rss>' % (requestor_id, theplatform_metadata['title'], theplatform_metadata['AETN$PPL_pplProgramId'], theplatform_metadata['ratings'][0]['rating']) + resource = self._get_mvpd_resource( + requestor_id, theplatform_metadata['title'], + theplatform_metadata.get('AETN$PPL_pplProgramId') or theplatform_metadata.get('AETN$PPL_pplProgramId_OLD'), + theplatform_metadata['ratings'][0]['rating']) query['auth'] = self._extract_mvpd_auth( url, video_id, requestor_id, resource) info.update(self._search_json_ld(webpage, video_id, fatal=False)) |