summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/cultureunplugged.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
commit137f07c27a88b07df57df5b2cdebebe3c7722bac (patch)
tree4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/cultureunplugged.py
parentAdding debian version 2024.05.27-1. (diff)
downloadyt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz
yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/cultureunplugged.py')
-rw-r--r--yt_dlp/extractor/cultureunplugged.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/cultureunplugged.py b/yt_dlp/extractor/cultureunplugged.py
index 9c8509f..8e6579c 100644
--- a/yt_dlp/extractor/cultureunplugged.py
+++ b/yt_dlp/extractor/cultureunplugged.py
@@ -20,7 +20,7 @@ class CultureUnpluggedIE(InfoExtractor):
'creator': 'Coldstream Creative',
'duration': 2203,
'view_count': int,
- }
+ },
}, {
'url': 'http://www.cultureunplugged.com/documentary/watch-online/play/53662',
'only_matching': True,
@@ -35,7 +35,7 @@ class CultureUnpluggedIE(InfoExtractor):
self._request_webpage(HEADRequest(
'http://www.cultureunplugged.com/setClientTimezone.php?timeOffset=%d' % -(time.timezone / 3600)), display_id)
movie_data = self._download_json(
- 'http://www.cultureunplugged.com/movie-data/cu-%s.json' % video_id, display_id)
+ f'http://www.cultureunplugged.com/movie-data/cu-{video_id}.json', display_id)
video_url = movie_data['url']
title = movie_data['title']
@@ -46,11 +46,11 @@ class CultureUnpluggedIE(InfoExtractor):
view_count = int_or_none(movie_data.get('views'))
thumbnails = [{
- 'url': movie_data['%s_thumb' % size],
+ 'url': movie_data[f'{size}_thumb'],
'id': size,
'preference': preference,
} for preference, size in enumerate((
- 'small', 'large')) if movie_data.get('%s_thumb' % size)]
+ 'small', 'large')) if movie_data.get(f'{size}_thumb')]
return {
'id': video_id,