Skip to content

Commit

Permalink
[nitter] fix video extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
enduser420 committed Nov 27, 2023
1 parent d9734ce commit 1e9bacd
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 1e9bacd

Please sign in to comment.