mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
commit
c83fbe6c2d
@ -96,6 +96,8 @@ class NitterExtractor(BaseExtractor):
|
|||||||
|
|
||||||
for url in text.extract_iter(
|
for url in text.extract_iter(
|
||||||
attachments, '<source src="', '"'):
|
attachments, '<source src="', '"'):
|
||||||
|
if url[0] == "/":
|
||||||
|
url = self.root + url
|
||||||
append(text.nameext_from_url(url, {"url": url}))
|
append(text.nameext_from_url(url, {"url": url}))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
@ -76,7 +76,7 @@ __tests__ = (
|
|||||||
"#sha1_url" : "3f2b64e175bf284aa672c3bb53ed275e470b919a",
|
"#sha1_url" : "3f2b64e175bf284aa672c3bb53ed275e470b919a",
|
||||||
"#sha1_content": "ab05e1d8d21f8d43496df284d31e8b362cd3bcab",
|
"#sha1_content": "ab05e1d8d21f8d43496df284d31e8b362cd3bcab",
|
||||||
|
|
||||||
"comments" : 19,
|
"comments" : int,
|
||||||
"content" : "Big Wedeene River, Canada",
|
"content" : "Big Wedeene River, Canada",
|
||||||
"count" : 1,
|
"count" : 1,
|
||||||
"date" : "dt:2015-05-29 17:40:00",
|
"date" : "dt:2015-05-29 17:40:00",
|
||||||
@ -84,7 +84,7 @@ __tests__ = (
|
|||||||
"filename" : "CGMNYZvW0AIVoom",
|
"filename" : "CGMNYZvW0AIVoom",
|
||||||
"likes" : int,
|
"likes" : int,
|
||||||
"num" : 1,
|
"num" : 1,
|
||||||
"quotes" : 10,
|
"quotes" : int,
|
||||||
"retweets" : int,
|
"retweets" : int,
|
||||||
"tweet_id" : "604341487988576256",
|
"tweet_id" : "604341487988576256",
|
||||||
"url" : "https://nitter.net/pic/orig/media%2FCGMNYZvW0AIVoom.jpg",
|
"url" : "https://nitter.net/pic/orig/media%2FCGMNYZvW0AIVoom.jpg",
|
||||||
|
Loading…
Reference in New Issue
Block a user