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

Fix barnesandnoble.com #1384

Open
Froktime opened this issue Nov 23, 2024 · 0 comments
Open

Fix barnesandnoble.com #1384

Froktime opened this issue Nov 23, 2024 · 0 comments

Comments

@Froktime
Copy link

Froktime commented Nov 23, 2024

https://www.barnesandnoble.com/

I noticed this site you have support but it's very strange when checking the original link

1/ in the book link

links that the site shows
(1) https://prodimage.images-bn.com/pimages/2940167595699_p0_v1_s600x595.jpg (423x595)

=> Your script into: https://prodimage.images-bn.com/pimages/2940167595699_p0_v1_s1200x630.jpg (448x639)

when i click on image (1) i see this image link
https://prodimage.images-bn.com/pimages/2940167595699_p0_v1_s1200x1200.jpg (854x1200)
ah i think this is a bigger picture, BUT!!!???

2/ in the book category/genre index link

same image but in this form

https://prodimage.images-bn.com/lf?set=key%5Bresolve.pixelRatio%5D,value%5B1%5D&set=key%5Bresolve.width%5D,value%5B300%5D&set=key%5Bresolve.height%5D,value%5B10000%5D&set=key%5Bresolve.imageFit%5D,value%5Bcontainerwidth%5D&set=key%5Bresolve.allowImageUpscaling%5D,value%5B0%5D&set=key%5Bresolve.format%5D,value%5Bwebp%5D&product=path%5B/pimages/2940167595699_p0_v1%5D&call=url%5Bfile:common/decodeProduct.chain%5D
(300x422)

I found out they seem to use this hosting system
https://www.liquidpixels.com/liquifire-os

and the script you redirect to this image link
https://prodimage.images-bn.com/lf?set=key%5Bresolve.pixelRatio%5D%2Cvalue%5B1%5D&set=key%5Bresolve.width%5D%2Cvalue%5B99999%5D&set=key%5Bresolve.height%5D%2Cvalue%5B99999%5D&set=key%5Bresolve.imageFit%5D%2Cvalue%5Bcontainerwidth%5D&set=key%5Bresolve.allowImageUpscaling%5D%2Cvalue%5B0%5D&set=key%5Bresolve.format%5D%2Cvalue%5Bwebp%5D&product=path%5B%2Fpimages%2F2940167595699_p0_v1%5D&call=url%5Bfile%3Acommon%2FdecodeProduct.chain%5D
(1420x1996)

I realized this is the link to the largest image
I decode to find out about this
https://prodimage.images-bn.com/lf?set=key[resolve.pixelRatio],value[1]&set=key[resolve.width],value[99999]&set=key[resolve.height],value[99999]&set=key[resolve.imageFit],value[containerwidth]&set=key[resolve.allowImageUpscaling],value[0]&set=key[resolve.format],value[webp]&product=path[/pimages/2940167595699_p0_v1]&call=url[file:common/decodeProduct.chain]

value[webp] seems to limit the best image, change it to png is good

product=path[/pimages/2940167595699_p0_v1] this "2940167595699" seems to be the photo id
view image link 1 again
https://prodimage.images-bn.com/pimages/2940167595699_p0_v1_s600x595.jpg

the maximum cover size is 2000x2000, well..

=============
In short the original image will be

https://prodimage.images-bn.com/lf?set=key[resolve.pixelRatio],value[1]&set=key[resolve.width],value[99999]&set=key[resolve.height],value[99999]&set=key[resolve.imageFit],value[containerwidth]&set=key[resolve.allowImageUpscaling],value[0]&set=key[resolve.format],value[png]&product=path[/pimages/2940167595699_p0_v1]&call=url[file:common/decodeProduct.chain]


if i have
https://prodimage.images-bn.com/pimages/9781779527264_p0_v2_s1200x630.jpg
(_p0_v2 I see v2 or v1 link is available and no "not found", so it will be ok if you make it original link form with v1)

=> https://prodimage.images-bn.com/lf?set=key[resolve.pixelRatio],value[1]&set=key[resolve.width],value[99999]&set=key[resolve.height],value[99999]&set=key[resolve.imageFit],value[containerwidth]&set=key[resolve.allowImageUpscaling],value[0]&set=key[resolve.format],value[png]&product=path[/pimages/9781779527264_p0_v1]&call=url[file:common/decodeProduct.chain]

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