1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[nitter] fix video extraction

This commit is contained in:
enduser420 2023-11-27 21:58:06 +05:30
parent d9734ce008
commit 1e9bacd169
2 changed files with 4 additions and 2 deletions

View File

@ -96,6 +96,8 @@ class NitterExtractor(BaseExtractor):
for url in text.extract_iter(
attachments, '<source src="', '"'):
if url[0] == "/":
url = self.root + url
append(text.nameext_from_url(url, {"url": url}))
else:

View File

@ -76,7 +76,7 @@ __tests__ = (
"#sha1_url" : "3f2b64e175bf284aa672c3bb53ed275e470b919a",
"#sha1_content": "ab05e1d8d21f8d43496df284d31e8b362cd3bcab",
"comments" : 19,
"comments" : int,
"content" : "Big Wedeene River, Canada",
"count" : 1,
"date" : "dt:2015-05-29 17:40:00",
@ -84,7 +84,7 @@ __tests__ = (
"filename" : "CGMNYZvW0AIVoom",
"likes" : int,
"num" : 1,
"quotes" : 10,
"quotes" : int,
"retweets" : int,
"tweet_id" : "604341487988576256",
"url" : "https://nitter.net/pic/orig/media%2FCGMNYZvW0AIVoom.jpg",