SaltyAom / opener-api

An opener api for generate color code and access nhentai open graph data
https://opener.now.sh
1 stars 0 forks source link

Source image of cover is incorrect #2

Closed rayriffy closed 4 years ago

rayriffy commented 4 years ago

https://opener.now.sh/api/data/252823

Expected result

    "cover": {
      "t": "p",
      "w": 350,
      "h": 494,
      "src": "https://t.nhentai.net/galleries/1313829/cover.png"
    },

Actual result

    "cover": {
      "t": "p",
      "w": 350,
      "h": 494,
      "src": "https://t.nhentai.net/galleries/1313829/cover.jpg"
    },
SaltyAom commented 4 years ago

Ok, I get it. Looks like NH does re-structure their own API, I guess? Otherwise something just went wrong and I don't know how to solve it (or I might be too lazy). Oh no But don't worry, I'm gonna rewrite this API very imminent time since this codebase is very hard to read.

SaltyAom commented 4 years ago

Thanks for your patient, New API is now up!

New nhOpener API

Sooo~ new API has just been implement! Surely it take me some time off designing new structure with
a lot cleaner usage. You might want to see the API itself which moved to here https://api.nhopener.mystiar.com.

This new version of the API should resolve this problem (although I haven't tried it, but it should have). Otherwise the code is quite pretty clean as I said to myself. You might want to take a look at the source code and believe me, you will surely want to look at it.

If you have any problem or any unclear instruction you can always re-open this issue~~

SaltyAom commented 4 years ago

Btw, the main one is now stuck on cache which took 6 hours to resolve. You might want to test the API with https://nhopener-api.now.sh/252823 instead.

Screen Shot 2562-12-13 at 19 51 56 Screen Shot 2562-12-13 at 19 52 03