deviantart: use #at_css instead of #search

only one result needed, query is css
This commit is contained in:
lllusion3469
2020-05-11 16:17:37 +02:00
parent 9dccee1d5e
commit 40fa985e26

View File

@@ -263,7 +263,7 @@ module Sources
# For hidden or deleted works the UUID will be nil.
def uuid
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?
appurl = meta["content"]