dezoomify icon indicating copy to clipboard operation
dezoomify copied to clipboard

[new site support]http://g2.ltfc.net

Open liaohe2025 opened this issue 4 years ago • 4 comments

Site name and desciption

What is the name and the URL of the site you would like dezoomify to support ? http://g2.ltfc.net

Why is this site of particular interest ? The more popular the site, the more chance you have to see dezoomify supporting it someday.

Example URLs

  • Give the URLs of viewing pages
  • http://g2.ltfc.net/view/SUHA/6116a76fafc0c06346a3e832
  • give the URLs of metadata files if you found them
  • https://cag.ltfc.net/cagstore/610367a9965deb3486d7a4ef/18/6_3.jpg?&sign=1a74b26aff8f04728ef7b3653bb49b79&t=61be7600

Current error message

Describe the error dezoomify currently gives you when you try to dezoomify images from this site. How to change http to use dezoomfy?

liaohe2025 avatar Aug 23 '21 05:08 liaohe2025

The page shows

ERROR: ACCESS DENIED Mon, 23 Aug 2021 07:17:19 GMT (taikoo/BC131_US-Michigan-chieago-1-cache-1)

See our wiki page about protected webpages.

lovasoa avatar Aug 23 '21 07:08 lovasoa

It looks like the tile URLs each contain a signature; but it could be easily reversed :

    ut.CAG_HOST = 'b49b4d8a45b8f098ba881d98abbb5c892f8b5c98';
    var Ie = /^(http.*\/\/[^\/]*)(\/.*\.(jpg|jpeg))\?*(.*)$/;
    function Ce(A) {
      var R = A.match(Ie);
      if (!R) return A;
      var I = R[1],
      L = R[2],
      N = R[3],
      H = R[4],
      he = ut.CAG_HOST,
      $e = (Math.ceil(new Date().getTime() / 31536000000) * 31536000).toString(16),
      yt = he + encodeURI(L) + $e,
      Re = se(yt);
      return [I,
      L,
      '?',
      H,
      '&sign=',
      Re,
      '&t=',
      $e].join('')
    }

I'm going to leave that opened if someone wants to make a PR.

lovasoa avatar Aug 23 '21 18:08 lovasoa

Got it ~ Fortunately they didn't change the timestamp for that Front Key

PandaBalls avatar Aug 27 '21 10:08 PandaBalls

I still don't know how to do it

jiangliu2258 avatar Aug 25 '23 10:08 jiangliu2258