summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/telequebec.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:11 +0000
commitfd5a06560caab95c71a2e2e805efa8d0f3a696a0 (patch)
treee1c600b8612bc4b301e2f51b875fcd835c5008cc /yt_dlp/extractor/telequebec.py
parentReleasing progress-linux version 2024.05.27-1~progress7.99u1. (diff)
downloadyt-dlp-fd5a06560caab95c71a2e2e805efa8d0f3a696a0.tar.xz
yt-dlp-fd5a06560caab95c71a2e2e805efa8d0f3a696a0.zip
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/telequebec.py')
-rw-r--r--yt_dlp/extractor/telequebec.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/extractor/telequebec.py b/yt_dlp/extractor/telequebec.py
index 08a0837..7f5d5d2 100644
--- a/yt_dlp/extractor/telequebec.py
+++ b/yt_dlp/extractor/telequebec.py
@@ -1,5 +1,4 @@
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import (
int_or_none,
smuggle_url,
@@ -72,7 +71,7 @@ class TeleQuebecIE(TeleQuebecBaseIE):
product = media.get('product') or {}
season = product.get('season') or {}
info.update({
- 'description': try_get(media, lambda x: x['descriptions'][-1]['text'], compat_str),
+ 'description': try_get(media, lambda x: x['descriptions'][-1]['text'], str),
'series': try_get(season, lambda x: x['serie']['titre']),
'season': season.get('name'),
'season_number': int_or_none(season.get('seasonNo')),
@@ -108,14 +107,14 @@ class TeleQuebecSquatIE(InfoExtractor):
video_id = self._match_id(url)
video = self._download_json(
- 'https://squat.api.telequebec.tv/v1/videos/%s' % video_id,
+ f'https://squat.api.telequebec.tv/v1/videos/{video_id}',
video_id)
media_id = video['sourceId']
return {
'_type': 'url_transparent',
- 'url': 'http://zonevideo.telequebec.tv/media/%s' % media_id,
+ 'url': f'http://zonevideo.telequebec.tv/media/{media_id}',
'ie_key': TeleQuebecIE.ie_key(),
'id': media_id,
'title': video.get('titre'),