You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e621.cc and e621.anthro.fr are alternative frontends to e621 with better mobile support. It'd be nice if gallery-dl could recognize these domains as aliases to e621.net.
But there's a problem - both sites have nonstandard URL patterns:
And although I can add alternative domains to a given instance through pattern, it doesn't seem possible to change the path or query parameter without affecting other instances as well.
I managed to work around this by adding a "proxy" extractor, like so:
classE621FrontendExtractor(Extractor):
"""Extractor for alternative frontends for e621"""basecategory="E621"subcategory="frontend"pattern=r"(?:https?://)?(?:e621\.cc/\?tags|e621\.anthro\.fr/\?q)=([^&#]*)"example="https://e621.cc/?tags=TAG"def__init__(self, match):
Extractor.__init__(self, match)
self.tags=match.group(1)
defitems(self):
yieldMessage.Queue, "https://e621.net/posts?tags="+self.tags, {"_extractor": E621TagExtractor}
But this seems kind of hacky to me, and I'm at a loss for a better solution.
As always, thank you for all the work you have poured into developing and maintaining gallery-dl, @mikf !
The text was updated successfully, but these errors were encountered:
e621.cc and e621.anthro.fr are alternative frontends to e621 with better mobile support. It'd be nice if gallery-dl could recognize these domains as aliases to e621.net.
But there's a problem - both sites have nonstandard URL patterns:
https://e621.net/posts?tags=rating%3Asafe
https://e621.anthro.fr/?q=rating%3Asafe
https://e621.cc/?tags=rating%3Asafe
And although I can add alternative domains to a given instance through
pattern
, it doesn't seem possible to change the path or query parameter without affecting other instances as well.I managed to work around this by adding a "proxy" extractor, like so:
But this seems kind of hacky to me, and I'm at a loss for a better solution.
As always, thank you for all the work you have poured into developing and maintaining gallery-dl, @mikf !
The text was updated successfully, but these errors were encountered: