aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/awaan.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-21 13:27:40 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-21 13:27:40 +0530
commite0ddbd02bd1c365b95bb88eaa6e4e0238faf35eb (patch)
tree8035bea649dee8e517380a8c3d6dc31a0436c2c3 /yt_dlp/extractor/awaan.py
parent0bfc53d05c7ecd7762313f0cd8578c46cd916519 (diff)
downloadhypervideo-pre-e0ddbd02bd1c365b95bb88eaa6e4e0238faf35eb.tar.lz
hypervideo-pre-e0ddbd02bd1c365b95bb88eaa6e4e0238faf35eb.tar.xz
hypervideo-pre-e0ddbd02bd1c365b95bb88eaa6e4e0238faf35eb.zip
[cleanup] Use format_field where applicable
Diffstat (limited to 'yt_dlp/extractor/awaan.py')
-rw-r--r--yt_dlp/extractor/awaan.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/awaan.py b/yt_dlp/extractor/awaan.py
index b5d1b57af..f5e559c9f 100644
--- a/yt_dlp/extractor/awaan.py
+++ b/yt_dlp/extractor/awaan.py
@@ -9,6 +9,7 @@ from ..compat import (
compat_str,
)
from ..utils import (
+ format_field,
int_or_none,
parse_iso8601,
smuggle_url,
@@ -43,7 +44,7 @@ class AWAANBaseIE(InfoExtractor):
'id': video_id,
'title': title,
'description': video_data.get('description_en') or video_data.get('description_ar'),
- 'thumbnail': 'http://admin.mangomolo.com/analytics/%s' % img if img else None,
+ 'thumbnail': format_field(img, template='http://admin.mangomolo.com/analytics/%s'),
'duration': int_or_none(video_data.get('duration')),
'timestamp': parse_iso8601(video_data.get('create_time'), ' '),
'is_live': is_live,