qsniyg / maxurl

Finds larger/original versions of images and videos
https://qsniyg.github.io/maxurl/
Apache License 2.0
1.08k stars 65 forks source link

try URL embedded in URL #384

Open kjetilho opened 4 years ago

kjetilho commented 4 years ago

it is rather common to use a scaling API which is passed the original URL. this example is from the Norwegian social network Underskog: https://images.underskog.no/620x/https://underskog.no/image/get/972480

notice the parameter to the service is not passed as a URI parameter. the 620x endpoint simply scales down to 620 pixel width.

(in this case the original file is 640 pixels wide, so it's not a huge improvement - but we like our files as pristine as possible :) )

qsniyg commented 4 years ago

Thanks for letting me know! I've added support for the site you linked, but I agree, it would be useful to have a generic rule for this kind of thing, though I believe it should be optional.

The blocker for this is the same as https://github.com/qsniyg/maxurl/issues/306, which is just to restructure the code so that looks_like_valid_link is accessible from bigimage (I'm not particularly good at naming things :p). It is now accessible! Just need to get around to implementing it.