keiyoushi / extensions-source

Source code of extensions for Tachiyomi/Mihon and variants.
https://keiyoushi.github.io/
Apache License 2.0
1.46k stars 330 forks source link

Manga does not load pages [mangadex] #2840

Closed Schellcunn closed 6 days ago

Schellcunn commented 2 weeks ago

Source information

Mangadex

Source language

English

Steps to reproduce

This manga https://mangadex.org/title/4509fd84-c003-4c57-ab07-e207e6999dab/issho-ni-kurashite-ii-desu-ka starts to return "read at mangadex" image instead of correct pages at page 8 onwards

Expected behavior

Correct manga pages should be displayed, they are displayed correctly when using webview

Actual behavior

Wrong image is displayed

Mihon/Tachiyomi version

App version: 0.16.5

Android version

14

Other details

-

Acknowledgements

AwkwardPeak7 commented 1 week ago

does it still happen?

Schellcunn commented 1 week ago

At least to me, yes. for the newest chapter

AwkwardPeak7 commented 1 week ago

try clearing chapter cache and try again

Schellcunn commented 1 week ago

Tested, doesn't help, cleared chapter cache, cookie and webview data and rebooted mihon, and problem is still happening

Schellcunn commented 1 week ago

Tested this without your repo, by calling their api with call result is the same as this bug, should probably be closed as mangadex issue: `import requests import os

chapter_id = "9dbb80bc-da29-4ab6-915e-b068667123d3" base_url = "https://api.mangadex.org" folder_path = f"[your path]/{chapter_id}"

r = requests.get(f"{base_url}/at-home/server/{chapter_id}") r_json = r.json()

host = r_json["baseUrl"] chapter_hash = r_json["chapter"]["hash"] data = r_json["chapter"]["data"] data_saver = r_json["chapter"]["dataSaver"] os.makedirs(folder_path, exist_ok=True) for page in data: r = requests.get(f"{host}/data/{chapter_hash}/{page}")

with open(f"{folder_path}/{page}", mode="wb") as f:
    f.write(r.content)

print(f"Downloaded {len(data)} pages.")`

Norsze commented 6 days ago

Tested the chapter today and it works now. Can you confirm @Schellcunn ?

Schellcunn commented 6 days ago

Tested, seems to work now

Norsze commented 6 days ago

Closing this in that case