Skip to content

Commit

Permalink
merge #4855: [nitter] fix video extraction (#4853)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 27, 2023
2 parents 1137d72 + 1e9bacd commit c83fbe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions gallery_dl/extractor/nitter.py
Expand Up @@ -96,6 +96,8 @@ def items(self):

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:
Expand Down
4 changes: 2 additions & 2 deletions test/results/nitternet.py
Expand Up @@ -76,15 +76,15 @@
"#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",
"extension": "jpg",
"filename" : "CGMNYZvW0AIVoom",
"likes" : int,
"num" : 1,
"quotes" : 10,
"quotes" : int,
"retweets" : int,
"tweet_id" : "604341487988576256",
"url" : "https://nitter.net/pic/orig/media%2FCGMNYZvW0AIVoom.jpg",
Expand Down

0 comments on commit c83fbe6

Please sign in to comment.