Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgsrc.baidu.com should be used for original pictures on tiebapic.baidu.com #1100

Closed
n0099 opened this issue Dec 23, 2022 · 5 comments
Closed

Comments

@n0099
Copy link

n0099 commented Dec 23, 2022

Currently neither https://tiebapic.baidu.com/forum/pic/item/4ba6b7fd5266d016e17995ecd22bd40734fa350b.jpg?tbpicau=2022-12-25-05_2ae0f8dbe307e91d5228fb7b90bdc060 nor https://tiebapic.baidu.com/forum/pic/item/4ba6b7fd5266d016e17995ecd22bd40734fa350b.jpg (without the tbpicau query string param) will give the original image, it will only output this placeholder:
image

run the following bash can verify this:

curl -s -w '%{stderr}%{time_total}s\n' 'https://tiebapic.baidu.com/forum/pic/item/4ba6b7fd5266d016e17995ecd22bd40734fa350b.jpg?tbpicau=2022-12-25-05_2ae0f8dbe307e91d5228fb7b90bdc060' | identify -
curl -s -w '%{stderr}%{time_total}s\n' 'https://tiebapic.baidu.com/forum/pic/item/4ba6b7fd5266d016e17995ecd22bd40734fa350b.jpg' | identify -

image

So it should be redirected to the historical domain https://imgsrc.baidu.com/forum/pic/item/4ba6b7fd5266d016e17995ecd22bd40734fa350b.jpg which doesn't require the tbpicau param and works fine as it had been.

Detailed differences between these two domains can be found at lumina37/aiotieba#63 (comment) (in chinese)

@qsniyg
Copy link
Owner

qsniyg commented Dec 23, 2022

Thank you very much for the detailed report! Fixed :)

@n0099
Copy link
Author

n0099 commented Jan 19, 2023

Did changes from the commit d764b07 appear in the latest release? I'm still getting redirected to the tiebapic.baidu.com domain.

@qsniyg
Copy link
Owner

qsniyg commented Jan 24, 2023

@n0099 There have been no stable releases since June 2021, you'll need to sideload the git repository for it to be updated.

@n0099
Copy link
Author

n0099 commented Jan 24, 2023

I had install the user script at https://greasyfork.org/scripts/36662 in July 2021, and now it's 404?
Anyway I've updated its source url for keeping up-to-date:
image

@qsniyg
Copy link
Owner

qsniyg commented Jan 24, 2023

@n0099 Yes, you'll need to use https://raw.githubusercontent.com/qsniyg/maxurl/master/userscript.user.js instead. Sorry, I should remove the greasyfork link from the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants