aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/tokentube.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-04-06 03:37:17 +0800
committerJesús <heckyel@hyperbola.info>2022-04-06 03:37:17 +0800
commit1e5a50b71d8f0eae6007bedc329eecb24bb5aba3 (patch)
treea8611cda6596391cb6fb645e1469dcd356b63924 /hypervideo_dl/extractor/tokentube.py
parentf52fb3bceeb9d22b5106c1796fecec474a0cc138 (diff)
downloadhypervideo-1e5a50b71d8f0eae6007bedc329eecb24bb5aba3.tar.lz
hypervideo-1e5a50b71d8f0eae6007bedc329eecb24bb5aba3.tar.xz
hypervideo-1e5a50b71d8f0eae6007bedc329eecb24bb5aba3.zip
update from upstream
Diffstat (limited to 'hypervideo_dl/extractor/tokentube.py')
-rw-r--r--hypervideo_dl/extractor/tokentube.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/hypervideo_dl/extractor/tokentube.py b/hypervideo_dl/extractor/tokentube.py
index d636211..579623f 100644
--- a/hypervideo_dl/extractor/tokentube.py
+++ b/hypervideo_dl/extractor/tokentube.py
@@ -6,7 +6,10 @@ import re
from .common import InfoExtractor
from ..utils import (
+ clean_html,
+ get_element_by_class,
parse_count,
+ remove_end,
unified_strdate,
js_to_json,
OnDemandPagedList,
@@ -35,7 +38,7 @@ class TokentubeIE(InfoExtractor):
'id': '3950239124',
'ext': 'mp4',
'title': 'Linux Ubuntu Studio perus käyttö',
- 'description': 'md5:854ff1dc732ff708976de2880ea32050',
+ 'description': 'md5:46077d0daaba1974f2dc381257f9d64c',
'uploader': 'jyrilehtonen',
'upload_date': '20210825',
},
@@ -45,7 +48,7 @@ class TokentubeIE(InfoExtractor):
'id': '3582463289',
'ext': 'mp4',
'title': 'Police for Freedom - toiminta aloitetaan Suomessa ❤️??',
- 'description': 'md5:cd92e620d7f5fa162e8410d0fc9a08be',
+ 'description': 'md5:37ebf1cb44264e0bf23ed98b337ee63e',
'uploader': 'Voitontie',
'upload_date': '20210428',
}
@@ -90,7 +93,10 @@ class TokentubeIE(InfoExtractor):
r'<a\s*class="place-left"[^>]+>(.+?)</a>',
webpage, 'uploader', fatal=False)
- description = self._html_search_meta('description', webpage)
+ description = (clean_html(get_element_by_class('p-d-txt', webpage))
+ or self._html_search_meta(('og:description', 'description', 'twitter:description'), webpage))
+
+ description = remove_end(description, 'Category')
self._sort_formats(formats)