2 from __future__
import unicode_literals
6 import xml
.etree
.ElementTree
as etree
8 from .common
import InfoExtractor
9 from ..compat
import compat_urlparse
21 'username_field': 'username',
22 'password_field': 'password',
26 'username_field': 'UserName',
27 'password_field': 'UserPassword',
30 'name': 'Comcast XFINITY',
31 'username_field': 'user',
32 'password_field': 'passwd',
35 'name': 'Time Warner Cable | Spectrum',
36 'username_field': 'Ecom_User_ID',
37 'password_field': 'Ecom_Password',
40 'name': 'Charter Spectrum',
41 'username_field': 'IDToken1',
42 'password_field': 'IDToken2',
45 'name': '3 Rivers Communications'
48 'name': 'Access Montana'
50 'acecommunications': {
54 'name': 'Acme Communications'
57 'name': 'Adams Cable Service'
60 'name': 'Albany Mutual Telephone'
63 'name': 'Algona Municipal Utilities'
66 'name': 'All West Communications'
69 'name': 'Allen\'s Communications'
72 'name': 'Alliance Communications'
75 'name': 'ALLO Communications'
78 'name': 'Alpine Communications'
81 'name': 'American Broadband'
84 'name': 'American Broadband Missouri'
87 'name': 'American Community Networks'
90 'name': 'American Warrior Networks'
93 'name': 'Amherst Telephone/Tomorrow Valley'
99 'name': 'Arkwest Communications'
102 'name': 'Arthur Mutual Telephone Company'
108 'name': 'Ashland Home Net'
111 'name': 'Astound (now Wave)'
114 'name': 'ATC Broadband'
117 'name': 'ATC Communications'
120 'name': 'Ayersville Communications'
123 'name': 'Baldwin Lightstream'
129 'name': 'Bardstown Cable TV'
132 'name': 'Bay Country Communications'
135 'name': 'Beaver Creek Cooperative Telephone'
138 'name': 'Beaver Valley Cable'
141 'name': 'Bee Line Cable'
144 'name': 'Beehive Broadband'
150 'name': 'Bellevue Municipal Cable'
153 'name': 'Ben Lomand Connect / BLTV'
159 'name': 'Big Sandy Broadband'
162 'name': 'Bledsoe Telephone Cooperative'
165 'name': 'Blue Valley Tele-Communications'
168 'name': 'Brandenburg Telephone Co.'
171 'name': 'Bristol Tennessee Essential Services'
174 'name': 'Broadstripe'
177 'name': 'BTC Communications'
180 'name': 'BTC Vision - Nahunta'
183 'name': 'Bulloch Telephone Cooperative'
186 'name': 'Butler-Bremer Communications'
189 'name': 'C Spire SNAP'
192 'name': 'Cable Services Inc.'
195 'name': 'CableAmerica'
198 'name': 'CableSouth Media 3'
201 'name': 'Cam-Tel Company'
204 'name': 'Cameron Communications'
207 'name': 'Canby Telcom'
213 'name': 'Carnegie Cable'
222 'name': 'Catalina Broadband Solutions'
225 'name': 'CC Communications'
228 'name': 'CDE Lightband'
231 'name': 'Cedar Falls Utilities'
234 'name': 'Celect-Bloomer Telephone Area'
237 'name': 'Celect-Bruce Telephone Area'
240 'name': 'Celect-Citizens Connected Area'
243 'name': 'Celect-Elmwood/Spring Valley Area'
246 'name': 'Celect-Mosaic Telecom'
249 'name': 'Celect-West WI Telephone Area'
252 'name': 'Cellcom/Nsight Telservices'
258 'name': 'Central Scott / CSTV'
261 'name': 'Chaparral CableVision'
264 'name': 'Chariton Valley Communication Corporation, Inc.'
267 'name': 'Chatmoss Cablevision'
270 'name': 'Cherokee Communications'
273 'name': 'Chesapeake Bay Communications'
276 'name': 'Cim-Tel Cable, LLC.'
279 'name': 'Citizens Cablevision - Floyd, VA'
282 'name': 'Citizens Cablevision, Inc.'
285 'name': 'Citizens Fiber'
288 'name': 'Citizens Mutual'
291 'name': 'Citizens Telephone Corporation'
294 'name': 'City Of Monroe'
303 'name': 'Clarence Telephone and Cedar Communications'
306 'name': 'Clear Choice Communications'
309 'name': 'Click! Cable TV'
315 'name': 'CML Telephone Cooperative Association'
321 'name': 'Co-Mo Connect'
324 'name': 'Coast Communications'
327 'name': 'Coaxial Cable TV'
330 'name': 'Cobalt TV (Mid-State Community TV)'
333 'name': 'Columbia Power & Water Systems'
336 'name': 'Columbus Telephone'
339 'name': 'Communications 1 Cablevision, Inc.'
342 'name': 'Community Cable & Broadband'
345 'name': 'Community Communications Company'
351 'name': 'Complete Communication Services'
357 'name': 'ComSouth Telesys'
359 'consolidatedcable': {
360 'name': 'Consolidated'
363 'name': 'Conway Corporation'
366 'name': 'Coon Valley Telecommunications Inc'
369 'name': 'Cooperative Telephone Company'
375 'name': 'Craw-Kan Telephone'
378 'name': 'Crestview Cable Communications'
384 'name': 'Crosslake Communications'
387 'name': 'CTC - Brainerd MN'
390 'name': 'CTV-Beam - East Alabama'
393 'name': 'Cunningham Telephone & Cable'
396 'name': 'D & P Communications'
399 'name': 'Dakota Central Telecommunications'
402 'name': 'Delcambre Telephone LLC'
405 'name': 'Delta Telephone Company'
411 'name': 'Direct Communications'
414 'name': 'Doylestown Cable TV'
423 'name': 'DTC Cable (Delhi)'
426 'name': 'Dumont Telephone Company'
429 'name': 'Dunkerton Telephone Cooperative'
432 'name': 'Duo County Telecom'
435 'name': 'Eagle Communications'
438 'name': 'East Arkansas Cable TV'
441 'name': 'EATEL Video, LLC'
447 'name': 'Emery Telcom Video LLC'
450 'name': 'Empire Access'
453 'name': 'Endeavor Communications'
456 'name': 'Enhanced Telecommunications Corporation'
462 'name': 'EPB Smartnet'
465 'name': 'EPlus Broadband'
471 'name': 'Etex Communications'
474 'name': 'F&B Communications'
477 'name': 'Falcon Broadband'
480 'name': 'FamilyView CableVision'
483 'name': 'Farmers Mutual Telephone Company'
486 'name': 'Fayetteville Public Utilities'
492 'name': 'Fidelity Communications'
495 'name': 'FJ Communications'
498 'name': 'Flint River Communications'
501 'name': 'FMT - Jesup'
504 'name': 'Foothills Communications'
507 'name': 'Forsyth CableNet'
510 'name': 'Frankfort Plant Board'
513 'name': 'Franklin Telephone Company'
519 'name': 'Full Channel, Inc.'
522 'name': 'Gardonville Cooperative Telephone Association'
525 'name': 'GBT Communications, Inc.'
528 'name': 'Genuine Telecom'
531 'name': 'Giant Communications'
534 'name': 'Glasgow EPB'
537 'name': 'Glenwood Telecommunications'
540 'name': 'GLW Broadband Inc.'
543 'name': 'Golden West Cablevision'
546 'name': 'Grantsburg Telcom'
549 'name': 'Great Plains Communications'
552 'name': 'Gridley Cable Inc'
555 'name': 'H&B Cable Services'
558 'name': 'Haefele TV Inc.'
561 'name': 'Halstad Telephone Company'
564 'name': 'Harlan Municipal Utilities'
567 'name': 'Hart Communications'
570 'name': 'Hartelco TV'
573 'name': 'Heart of Iowa Communications Cooperative'
576 'name': 'Hickory Telephone Company'
579 'name': 'Highland Communication Services'
582 'name': 'Highland Media'
585 'name': 'Hilliary Communications'
588 'name': 'Hinton CATV Co.'
591 'name': 'HomeTel Entertainment, Inc.'
594 'name': 'Hood Canal Communications'
597 'name': 'Hope - Prescott Cable TV'
600 'name': 'Horizon Cable TV, Inc.'
603 'name': 'Horizon Chillicothe Telephone'
606 'name': 'HTC Communications Co. - IL'
609 'name': 'HTC Communications, Inc. - IA'
612 'name': 'Huxley Communications'
615 'name': 'ImOn Communications'
618 'name': 'Independence Telecommunications'
621 'name': 'Inland Networks'
624 'name': 'Innovative Cable TV St Croix'
627 'name': 'Innovative Cable TV St Thomas-St John'
630 'name': 'Inside Connect Cable'
633 'name': 'Integra Telecom'
636 'name': 'Interstate Telecommunications Coop'
639 'name': 'Irvine Cable'
642 'name': 'K2 Communications'
645 'name': 'Kalida Telephone Company, Inc.'
648 'name': 'Kalona Cooperative Telephone Company'
654 'name': 'KPU Telecommunications'
657 'name': 'Kuhn Communications, Inc.'
660 'name': 'Lakeland Communications'
666 'name': 'Laurel Highland Total Communications, Inc.'
669 'name': 'Lehigh Valley Cooperative Telephone'
672 'name': 'Limestone Cable/Bracken Cable'
684 'name': 'LocalTel Communications'
687 'name': 'Longview - Kilgore Cable TV'
690 'name': 'Lonsdale Video Ventures, LLC'
693 'name': 'Lost Nation-Elwood Telephone Co.'
696 'name': 'LPC Connect'
699 'name': 'Lumos Networks'
702 'name': 'Madison Communications'
705 'name': 'Madison County Cable Inc.'
708 'name': 'Mahaska Communication Group'
711 'name': 'Marne & Elk Horn Telephone Company'
714 'name': 'McClure Telephone Co.'
720 'name': 'Merrimac Communications Ltd.'
729 'name': 'Mid-Hudson Cable'
732 'name': 'Mid-Rivers Communications'
735 'name': 'Midstate Communications'
738 'name': 'Milford Communications'
747 'name': 'Mitchell Telecom'
753 'name': 'Mon-Cre TVE'
756 'name': 'Mountain Telephone'
759 'name': 'Mountain Village Cable'
762 'name': 'MTA Communications, LLC'
768 'name': 'MTC Technologies'
774 'name': 'MTCO Communications'
777 'name': 'Mulberry Telecommunications'
780 'name': 'Murray Electric System'
783 'name': 'MUS FiberNET'
786 'name': 'Muscatine Power & Water'
798 'name': 'Nebraska Central Telecom, Inc.'
801 'name': 'Nelsonville TV Cable'
807 'name': 'New Hope Telephone Cooperative'
813 'name': 'NineStar Connect'
819 'name': 'Nortex Communications'
822 'name': 'North Central Telephone Cooperative'
825 'name': 'Northland Communications'
828 'name': 'Northwest Communications'
831 'name': 'Norwood Light Broadband'
834 'name': 'Nsight Telservices'
840 'name': 'NTS Communications'
852 'name': 'OmniTel Communications'
855 'name': 'OneSource Communications'
858 'name': 'Opelika Power Services'
867 'name': 'OTEC Communication Company'
870 'name': 'Packerland Broadband'
873 'name': 'Panora Telco/Guthrie Center Communications'
876 'name': 'Park Region Telephone & Otter Tail Telcom'
879 'name': 'Partner Communications Cooperative'
885 'name': 'Paul Bunyan Communications'
888 'name': 'Pembroke Telephone Company'
891 'name': 'Peoples Rural Telephone Cooperative'
894 'name': 'PES Energize'
897 'name': 'Philippi Communications System'
900 'name': 'Phonoscope Cable'
903 'name': 'Pine Belt Communications, Inc.'
906 'name': 'Pine Bluff Cable TV'
909 'name': 'Pineland Telephone Cooperative'
912 'name': 'Pinpoint Communications'
915 'name': 'Pioneer Broadband'
918 'name': 'Pioneer Communications'
921 'name': 'Pioneer DTV'
924 'name': 'Plant TiftNet, Inc.'
933 'name': 'Polar Cablevision'
936 'name': 'Pottawatomie Telephone Co.'
939 'name': 'Premier Communications'
951 'name': 'Quality Cablevision'
954 'name': 'Radcliffe Telephone Company'
957 'name': 'Rainbow Communications'
960 'name': 'Rainier Connect'
963 'name': 'Ralls Technologies'
966 'name': 'RC Technologies'
969 'name': 'Red River Communications'
972 'name': 'Reedsburg Utility Commission'
975 'name': 'Reliance Connects- Oregon'
978 'name': 'Reserve Telecommunications'
981 'name': 'Resort TV Cable'
984 'name': 'Richland Grant Telephone Cooperative, Inc.'
987 'name': 'River Valley Telecommunications Coop'
990 'name': 'Rock Port Cablevision'
996 'name': 'RTC Communication Corp'
999 'name': 'RTC-Reservation Telephone Coop.'
1002 'name': 'RTEC Communications'
1008 'name': 'San Bruno Cable TV'
1014 'name': 'SCI Broadband-Savage Communications Inc.'
1017 'name': 'Scottsboro Electric Power Board'
1020 'name': 'Scranton Telephone Company'
1029 'name': 'Sherwood Mutual Telephone Association, Inc.'
1032 'name': 'Silver Star Communications'
1035 'name': 'Sjoberg\'s Inc.'
1041 'name': 'SkyBest TV'
1044 'name': 'Smithville Communications'
1050 'name': 'South Central Rural Telephone Cooperative'
1053 'name': 'South Holt Cablevision, Inc.'
1056 'name': 'South Slope Cooperative Communications'
1059 'name': 'Spanish Fork Community Network'
1062 'name': 'Spencer Municipal Utilities'
1065 'name': 'Spillway Communications, Inc.'
1071 'name': 'St. Maarten Cable TV'
1074 'name': 'Star Communications'
1080 'name': 'STRATA Networks'
1083 'name': 'Sumner Cable TV'
1086 'name': 'Surry TV/PCSI TV'
1089 'name': 'Swayzee Communications'
1092 'name': 'Sweetwater Cable Television Co'
1094 'weh010-talequah': {
1095 'name': 'Tahlequah Cable TV'
1101 'name': 'Tele-Media Company'
1104 'name': 'The Community Agency'
1107 'name': 'Three River'
1110 'name': 'Town & Country Technologies'
1113 'name': 'Trans-Video'
1116 'name': 'Trenton TV Cable Company'
1119 'name': 'Tri County Communications Cooperative'
1122 'name': 'TriCounty Telecom'
1125 'name': 'TrioTel Communications, Inc.'
1128 'name': 'Troy Cablevision, Inc.'
1134 'name': 'Tullahoma Utilities Board'
1137 'name': 'TV Cable of Rensselaer'
1146 'name': 'Twin Lakes'
1149 'name': 'Twin Valley'
1152 'name': 'Union Telephone Company'
1155 'name': 'United Communications - TN'
1158 'name': 'United Services'
1164 'name': 'USA Communications'
1167 'name': 'USA Communications/Shellsburg, IA'
1170 'name': 'Valley TeleCom Group'
1173 'name': 'Valley Telecommunications'
1176 'name': 'Valparaiso Broadband'
1179 'name': 'Vast Broadband'
1182 'name': 'Venture Communications Cooperative, Inc.'
1185 'name': 'Vernon Communications Co-op'
1187 'weh010-vicksburg': {
1188 'name': 'Vicksburg Video'
1191 'name': 'Vision Communications'
1194 'name': 'Volcano Vision, Inc.'
1197 'name': 'VolFirst / BLTV'
1206 'name': 'Vyve Broadband'
1209 'name': 'Wabash Mutual Telephone'
1212 'name': 'Waitsfield Cable'
1215 'name': 'Walnut Communications'
1221 'name': 'Waverly Communications Utility'
1227 'name': 'Webster-Calhoun Cooperative Telephone Association'
1230 'name': 'West Alabama TV Cable'
1233 'name': 'West Carolina Communications'
1236 'name': 'West Central Telephone Association'
1239 'name': 'West River Cooperative Telephone Company'
1242 'name': 'WesTel Systems'
1245 'name': 'Western Iowa Networks'
1248 'name': 'Whidbey Telecom'
1251 'name': 'White County Cable TV'
1260 'name': 'Wilkes Communications, Inc./RiverStreet Networks'
1263 'name': 'Wilson Communications'
1266 'name': 'Windomnet/SMBS'
1269 'name': 'Windstream Cable TV'
1272 'name': 'Winnebago Cooperative Telecom Association'
1278 'name': 'WTC Communications, Inc.'
1281 'name': 'Wyandotte Cable'
1284 'name': 'X-Stream Services'
1287 'name': 'XIT Communications'
1290 'name': 'Yelcot Communications'
1296 'name': 'Zito Media'
1301 class AdobePassIE(InfoExtractor
):
1302 _SERVICE_PROVIDER_TEMPLATE
= 'https://sp.auth.adobe.com/adobe-services/%s'
1303 _USER_AGENT
= 'Mozilla/5.0 (X11; Linux i686; rv:47.0) Gecko/20100101 Firefox/47.0'
1304 _MVPD_CACHE
= 'ap-mvpd'
1307 def _get_mvpd_resource(provider_id
, title
, guid
, rating
):
1308 channel
= etree
.Element('channel')
1309 channel_title
= etree
.SubElement(channel
, 'title')
1310 channel_title
.text
= provider_id
1311 item
= etree
.SubElement(channel
, 'item')
1312 resource_title
= etree
.SubElement(item
, 'title')
1313 resource_title
.text
= title
1314 resource_guid
= etree
.SubElement(item
, 'guid')
1315 resource_guid
.text
= guid
1316 resource_rating
= etree
.SubElement(item
, 'media:rating')
1317 resource_rating
.attrib
= {'scheme': 'urn:v-chip'}
1318 resource_rating
.text
= rating
1319 return '<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">' + etree
.tostring(channel
).decode() + '</rss>'
1321 def _extract_mvpd_auth(self
, url
, video_id
, requestor_id
, resource
):
1322 def xml_text(xml_str
, tag
):
1323 return self
._search
_regex
(
1324 '<%s>(.+?)</%s>' % (tag
, tag
), xml_str
, tag
)
1326 def is_expired(token
, date_ele
):
1327 token_expires
= unified_timestamp(re
.sub(r
'[_ ]GMT', '', xml_text(token
, date_ele
)))
1328 return token_expires
and token_expires
<= int(time
.time())
1330 def post_form(form_page_res
, note
, data
={}):
1331 form_page
, urlh
= form_page_res
1332 post_url
= self
._html
_search
_regex
(r
'<form[^>]+action=(["\'])(?P
<url
>.+?
)\
1', form_page, 'post url
', group='url
')
1333 if not re.match(r'https?
://', post_url):
1334 post_url = compat_urlparse.urljoin(urlh.geturl(), post_url)
1335 form_data = self._hidden_inputs(form_page)
1336 form_data.update(data)
1337 return self._download_webpage_handle(
1338 post_url, video_id, note, data=urlencode_postdata(form_data), headers={
1339 'Content
-Type
': 'application
/x
-www
-form
-urlencoded
',
1342 def raise_mvpd_required():
1343 raise ExtractorError(
1344 'This video
is only available
for users of participating TV providers
. '
1345 'Use
--ap
-mso to specify Adobe Pass Multiple
-system operator Identifier
'
1346 'and --ap
-username
and --ap
-password
or --netrc to provide account credentials
.', expected=True)
1349 'ap_42
': 'anonymous
',
1350 'ap_11
': 'Linux i686
',
1351 'ap_z
': self._USER_AGENT,
1352 'User
-Agent
': self._USER_AGENT,
1355 guid = xml_text(resource, 'guid
') if '<' in resource else resource
1358 requestor_info = self._downloader.cache.load(self._MVPD_CACHE, requestor_id) or {}
1359 authn_token = requestor_info.get('authn_token
')
1360 if authn_token and is_expired(authn_token, 'simpleTokenExpires
'):
1363 # TODO add support for other TV Providers
1364 mso_id = self._downloader.params.get('ap_mso
')
1366 raise_mvpd_required()
1367 username, password = self._get_login_info('ap_username
', 'ap_password
', mso_id)
1368 if not username or not password:
1369 raise_mvpd_required()
1370 mso_info = MSO_INFO[mso_id]
1372 provider_redirect_page_res = self._download_webpage_handle(
1373 self._SERVICE_PROVIDER_TEMPLATE % 'authenticate
/saml
', video_id,
1374 'Downloading Provider Redirect Page
', query={
1377 'requestor_id
': requestor_id,
1378 'no_iframe
': 'false
',
1379 'domain_name
': 'adobe
.com
',
1380 'redirect_url
': url,
1383 if mso_id == 'Comcast_SSO
':
1384 # Comcast page flow varies by video site and whether you
1385 # are on Comcast's network
.
1386 provider_redirect_page
, urlh
= provider_redirect_page_res
1387 # Check for Comcast auto login
1388 if 'automatically signing you in' in provider_redirect_page
:
1389 oauth_redirect_url
= self
._html
_search
_regex
(
1390 r
'window\.location\s*=\s*[\'"]([^\'"]+)',
1391 provider_redirect_page, 'oauth redirect
')
1392 # Just need to process the request. No useful data comes back
1393 self._download_webpage(
1394 oauth_redirect_url, video_id, 'Confirming auto login
')
1396 if '<form name
="signin"' in provider_redirect_page:
1397 # already have the form, just fill it
1398 provider_login_page_res = provider_redirect_page_res
1399 elif 'http
-equiv
="refresh"' in provider_redirect_page:
1400 # redirects to the login page
1401 oauth_redirect_url = self._html_search_regex(
1402 r'content
="0;\s*url=([^\'"]+)',
1403 provider_redirect_page, 'meta refresh redirect
')
1404 provider_login_page_res = self._download_webpage_handle(
1406 video_id, 'Downloading Provider Login Page
')
1408 provider_login_page_res = post_form(
1409 provider_redirect_page_res, 'Downloading Provider Login Page
')
1411 mvpd_confirm_page_res = post_form(provider_login_page_res, 'Logging
in', {
1412 mso_info.get('username_field
', 'username
'): username,
1413 mso_info.get('password_field
', 'password
'): password,
1415 mvpd_confirm_page, urlh = mvpd_confirm_page_res
1416 if '<button
class="submit" value
="Resume">Resume
</button
>' in mvpd_confirm_page:
1417 post_form(mvpd_confirm_page_res, 'Confirming Login
')
1420 # Normal, non-Comcast flow
1421 provider_login_page_res = post_form(
1422 provider_redirect_page_res, 'Downloading Provider Login Page
')
1423 mvpd_confirm_page_res = post_form(provider_login_page_res, 'Logging
in', {
1424 mso_info.get('username_field
', 'username
'): username,
1425 mso_info.get('password_field
', 'password
'): password,
1427 if mso_id != 'Rogers
':
1428 post_form(mvpd_confirm_page_res, 'Confirming Login
')
1430 session = self._download_webpage(
1431 self._SERVICE_PROVIDER_TEMPLATE % 'session
', video_id,
1432 'Retrieving Session
', data=urlencode_postdata({
1434 'requestor_id
': requestor_id,
1435 }), headers=mvpd_headers)
1436 if '<pendingLogout
' in session:
1437 self._downloader.cache.store(self._MVPD_CACHE, requestor_id, {})
1440 authn_token = unescapeHTML(xml_text(session, 'authnToken
'))
1441 requestor_info['authn_token
'] = authn_token
1442 self._downloader.cache.store(self._MVPD_CACHE, requestor_id, requestor_info)
1444 authz_token = requestor_info.get(guid)
1445 if authz_token and is_expired(authz_token, 'simpleTokenTTL
'):
1448 authorize = self._download_webpage(
1449 self._SERVICE_PROVIDER_TEMPLATE % 'authorize
', video_id,
1450 'Retrieving Authorization Token
', data=urlencode_postdata({
1451 'resource_id
': resource,
1452 'requestor_id
': requestor_id,
1453 'authentication_token
': authn_token,
1454 'mso_id
': xml_text(authn_token, 'simpleTokenMsoID
'),
1456 }), headers=mvpd_headers)
1457 if '<pendingLogout
' in authorize:
1458 self._downloader.cache.store(self._MVPD_CACHE, requestor_id, {})
1461 authz_token = unescapeHTML(xml_text(authorize, 'authzToken
'))
1462 requestor_info[guid] = authz_token
1463 self._downloader.cache.store(self._MVPD_CACHE, requestor_id, requestor_info)
1465 mvpd_headers.update({
1466 'ap_19
': xml_text(authn_token, 'simpleSamlNameID
'),
1467 'ap_23
': xml_text(authn_token, 'simpleSamlSessionIndex
'),
1470 short_authorize = self._download_webpage(
1471 self._SERVICE_PROVIDER_TEMPLATE % 'shortAuthorize
',
1472 video_id, 'Retrieving Media Token
', data=urlencode_postdata({
1473 'authz_token
': authz_token,
1474 'requestor_id
': requestor_id,
1475 'session_guid
': xml_text(authn_token, 'simpleTokenAuthenticationGuid
'),
1476 'hashed_guid
': 'false
',
1477 }), headers=mvpd_headers)
1478 if '<pendingLogout
' in short_authorize:
1479 self._downloader.cache.store(self._MVPD_CACHE, requestor_id, {})
1482 return short_authorize