wbg
wbg copied to clipboard
Images not downloading properly since 11/21
Since around 11/21 images are no longer saving properly. I think they must have done something server-side, because hotlinking image URLs (in the wx[n].sinaimg.cn
format) also doesn't work and throws a 403 Forbidden instead. The same happens for gifs; videos still download fine. Maybe this is a geographic thing? I'm located in Canada.
A (temporary?) workaround is to go through Oasis image links. Instead of wx[n].sinaimg.cn/large/filename.jpg
, using lz.sinaimg.cn
works fine. The rest of the URL can stay the same, just changing the subdomain.
I temporarily patched the extension for myself by adding a tiny replace to const host
in content/feed/download/download.js
function downloadImage()
:
const host = new URL(img.src).host.replace(/^[^.]*/, 'lz');
It seems to work fine for downloading single posts, though I haven't tried downloading a whole feed.
I don't actually know how to submit a PR or if there's a better solution, but leaving this comment here in case anyone else is running into the same problem.