remove `merge_dicts` import and cleanup

pull/9646/head
HobbyistDev 2024-04-11 21:32:36 +08:00
rodzic 6c6ad3298d
commit 0b9fc25be6
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,6 @@ from .common import InfoExtractor
from ..utils import (
float_or_none,
js_to_json,
merge_dicts,
url_or_none,
)
from ..utils.traversal import traverse_obj
@ -74,8 +73,9 @@ class XiaoHongSuIE(InfoExtractor):
'url': self._html_search_meta(['og:video'], webpage, fatal=True),
'ext': 'mp4'
}],
'thumbnails': thumbnails or [{'url':
self._html_search_meta(['og:image'], webpage)}]
'thumbnails': thumbnails or [{
'url': self._html_search_meta(['og:image'], webpage)
}],
'title': self._html_search_meta(['og:title'], webpage, default=None),
**traverse_obj(note_info, {
'title': 'title',