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