Fix bookmarklet for whitecube URLs.

Make the bookmarklet work for URLs like this:

* http://www.pixiv.net/whitecube/user/607414/illust/59510800
* http://www.pixiv.net/whitecube/user/772090/illust/59595705
This commit is contained in:
evazion
2016-10-22 16:07:44 -05:00
parent 080eecb6b9
commit f94dfbf17e
3 changed files with 15 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ module Downloads
# Cache the source data so it gets fetched at most once.
def source
@source ||= begin
source = ::Sources::Strategies::Pixiv.new(url)
source = ::Sources::Site.new(url)
source.get
source