Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly committed Nov 16, 2024
1 parent 06c865a commit d2cfdbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yt_dlp/extractor/kenh14.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ def _real_extract(self, url):
or clean_html(get_element_by_class('vdbw-sapo', webpage))),
'thumbnail': (self._og_search_thumbnail(webpage) or attrs.get('data-thumb')),
'uploader': traverse_obj(metadata, ('author', {strip_or_none})),
'timestamp': traverse_obj(metadata, (
'uploadtime', {lambda x: parse_iso8601(x, delimiter=' ')})),
'timestamp': traverse_obj(metadata, ('uploadtime', {parse_iso8601(delimiter=' ')})),
'view_count': traverse_obj(metadata, ('views', {int_or_none})),
'tags': traverse_obj(self._html_search_meta('keywords', webpage), (
{lambda x: x.split(';')}, ..., filter)),
Expand Down Expand Up @@ -147,4 +146,4 @@ def _real_extract(self, url):
or unescapeHTML(embed_info.get('alternateName'))),
thumbnail=traverse_obj(
self._og_search_thumbnail(webpage),
({url_or_none}, {lambda x: update_url(x, query=None)})))
({url_or_none}, {update_url(query=None)})))

0 comments on commit d2cfdbc

Please sign in to comment.