Open m3g4p0n1 opened 1 year ago
I had an issue where direct uploading to e621 through reBot resulted in an error, but it was on the e621 side.
My area, Brazil, uses inkbunny links with a "br" prefix, and they may be numbered or not.
Inkbunny can redirect users from "br" to "brX" when needed, but according to Kira on discord, they don't want e621 to follow such redirects.
So I created this function to fix the link before it reaches the e621 image fetcher, so it always uses the already redirected link, in a certain way.
Created it as a function in case there are more regional links with this issue.
In example, when uploading manually, simply changing "...br.ib.metapix.net/..." to "...jp.ib.metapix.net/..." fixed the issue.
I had an issue where direct uploading to e621 through reBot resulted in an error, but it was on the e621 side.
My area, Brazil, uses inkbunny links with a "br" prefix, and they may be numbered or not.
Inkbunny can redirect users from "br" to "brX" when needed, but according to Kira on discord, they don't want e621 to follow such redirects.
So I created this function to fix the link before it reaches the e621 image fetcher, so it always uses the already redirected link, in a certain way.
Created it as a function in case there are more regional links with this issue.
In example, when uploading manually, simply changing "...br.ib.metapix.net/..." to "...jp.ib.metapix.net/..." fixed the issue.