deviantart: use #at_css instead of #search
only one result needed, query is css
This commit is contained in:
@@ -263,7 +263,7 @@ module Sources
|
|||||||
# For hidden or deleted works the UUID will be nil.
|
# For hidden or deleted works the UUID will be nil.
|
||||||
def uuid
|
def uuid
|
||||||
return nil if page.nil?
|
return nil if page.nil?
|
||||||
meta = page.search('meta[property="da:appurl"]').first
|
meta = page.at_css('meta[property="da:appurl"]')
|
||||||
return nil if meta.nil?
|
return nil if meta.nil?
|
||||||
|
|
||||||
appurl = meta["content"]
|
appurl = meta["content"]
|
||||||
|
|||||||
Reference in New Issue
Block a user