Xerbo / furaffinity-dl

FurAffinity Downloader, now with 100% more Python
BSD 3-Clause "New" or "Revised" License
91 stars 17 forks source link

fix image url not matching some unicode char #49

Closed ghost closed 3 years ago

ghost commented 3 years ago

The current regular expression for image URL matching (' href="//d.facdn.net/art/.\+">Download') will not match URLs that contain certain Unicode characters (e.g., <a class="button standard mobile-fix" href="//d.facdn.net/art/istani/1560251251/1560251251.istani_카르투하검로드3.png">Download</a>).

I'm not sure if this is a grep issue, but changing the expression to match all non-quote characters (' href="//d.facdn.net/art/[^"]\+">Download') will fix this issue.