rename
This commit is contained in:
@@ -5,7 +5,7 @@ module Downloads
|
|||||||
if url =~ %r!^https?://(?:mobile\.)?twitter\.com!
|
if url =~ %r!^https?://(?:mobile\.)?twitter\.com!
|
||||||
url, headers = rewrite_status_page(url, headers)
|
url, headers = rewrite_status_page(url, headers)
|
||||||
elsif url =~ %r{^https?://pbs\.twimg\.com}
|
elsif url =~ %r{^https?://pbs\.twimg\.com}
|
||||||
url, headers = rewrite_direct_image_url(url, headers)
|
url, headers = rewrite_thumbnails(url, headers)
|
||||||
end
|
end
|
||||||
|
|
||||||
return [url, headers, data]
|
return [url, headers, data]
|
||||||
@@ -19,7 +19,7 @@ module Downloads
|
|||||||
return [url, headers]
|
return [url, headers]
|
||||||
end
|
end
|
||||||
|
|
||||||
def rewrite_direct_image_url(url, headers)
|
def rewrite_thumbnails(url, headers)
|
||||||
if url =~ %r{^(https?://pbs\.twimg\.com/media/[^:]+)}
|
if url =~ %r{^(https?://pbs\.twimg\.com/media/[^:]+)}
|
||||||
url = $1 + ":orig"
|
url = $1 + ":orig"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user