summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/sevenplus.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/sevenplus.py')
-rw-r--r--yt_dlp/extractor/sevenplus.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/extractor/sevenplus.py b/yt_dlp/extractor/sevenplus.py
index 6c688d1..6e1fbe7 100644
--- a/yt_dlp/extractor/sevenplus.py
+++ b/yt_dlp/extractor/sevenplus.py
@@ -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({