Upgrade yt_dlp and download script
This commit is contained in:
@@ -2,7 +2,6 @@ import json
|
||||
import re
|
||||
|
||||
from .brightcove import BrightcoveNewBaseIE
|
||||
from ..compat import compat_str
|
||||
from ..networking.exceptions import HTTPError
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
@@ -31,7 +30,7 @@ class SevenPlusIE(BrightcoveNewBaseIE):
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
}
|
||||
},
|
||||
}, {
|
||||
'url': 'https://7plus.com.au/UUUU?episode-id=AUMS43-001',
|
||||
'only_matching': True,
|
||||
@@ -71,7 +70,7 @@ class SevenPlusIE(BrightcoveNewBaseIE):
|
||||
'idToken': id_token,
|
||||
'platformId': 'web',
|
||||
'regSource': '7plus',
|
||||
}).encode('utf-8')) or {}
|
||||
}).encode()) or {}
|
||||
self.token = token_resp.get('token')
|
||||
if not self.token:
|
||||
self.report_warning('Unable to log in: Could not extract auth token')
|
||||
@@ -120,7 +119,7 @@ class SevenPlusIE(BrightcoveNewBaseIE):
|
||||
if value:
|
||||
info[dst_key] = value
|
||||
info['series'] = try_get(
|
||||
item, lambda x: x['seriesLogo']['name'], compat_str)
|
||||
item, lambda x: x['seriesLogo']['name'], str)
|
||||
mobj = re.search(r'^S(\d+)\s+E(\d+)\s+-\s+(.+)$', info['title'])
|
||||
if mobj:
|
||||
info.update({
|
||||
|
Reference in New Issue
Block a user