fix source js for pawoo sites
This commit is contained in:
@@ -11,7 +11,7 @@ module Downloads
|
||||
if PawooApiClient::Status.is_match?(url)
|
||||
client = PawooApiClient.new
|
||||
response = client.get_status(url)
|
||||
url = client.image_url
|
||||
url = response.image_url
|
||||
end
|
||||
|
||||
return [url, headers, data]
|
||||
|
||||
@@ -7,7 +7,7 @@ class PawooApiClient
|
||||
attr_reader :json
|
||||
|
||||
def self.is_match?(url)
|
||||
url =~ %r!https://pawoo.net/web/accounts/(\d+)!
|
||||
url =~ %r!https?://pawoo.net/web/accounts/(\d+)!
|
||||
$1
|
||||
end
|
||||
|
||||
|
||||
@@ -6,6 +6,10 @@ module Sources::Strategies
|
||||
PawooApiClient::Status.is_match?(url)
|
||||
end
|
||||
|
||||
def referer_url
|
||||
@url
|
||||
end
|
||||
|
||||
def site_name
|
||||
"Pawoo"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user