1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

merge #4855: [nitter] fix video extraction (#4853)

This commit is contained in:
Mike Fährmann 2023-11-27 18:39:05 +01:00
commit c83fbe6c2d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
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",