aniyomiorg / aniyomi

An app for manga and anime
https://aniyomi.org
Apache License 2.0
4.53k stars 283 forks source link

Shikimori tracking anime - HTTP error 404 (+ example how to fix it) #1553

Open Froxim opened 2 months ago

Froxim commented 2 months ago

Steps to reproduce

  1. Anime should be added to the list on Shikimori
  2. Select this anime to track in the application
  3. API returns HTTP error 404

Expected behavior

Anime should start tracking without errors

Actual behavior

HTTP error 404

Crash logs

No response

Aniyomi version

0.15.2.4

Android version

Android 12

Device

Xiaomi Redmi Note 9 Pro

Other details

I examined the request creation code in the ShikimoriApi.kt file and discovered the cause of the error: IMG_20240425_093443 If replace "mangas" with "animes" the tracking will work. I checked it on a copy - HTTP error 404 no longer appeared.

Acknowledgements

Diehardboy1722 commented 1 month ago

Same problem and don't know how to solve.

Froxim commented 1 month ago

I described the fix in Other details. But I've never used Github, and I don't know how to add it to the project. The screenshot shows the place in the code that needs to be replaced with "animes". This will solve the problem. IMG_20240508_212856

fakebhai commented 1 month ago

I described the fix in Other details. But I've never used Github, and I don't know how to add it to the project. The screenshot shows the place in the code that needs to be replaced with "animes". This will solve the problem.

I tried to login my account today but password reset didn't work, I'll try again tomorrow and see if that change fixes it

Froxim commented 1 month ago

I described the fix in Other details. But I've never used Github, and I don't know how to add it to the project. The screenshot shows the place in the code that needs to be replaced with "animes". This will solve the problem.

I tried to login my account today but password reset didn't work, I'll try again tomorrow and see if that change fixes it

You can create a temporary email for a test account on Shikimori. For example, https://temp-mail.org/ru/

fakebhai commented 1 month ago

You can create a temporary email for a test account on Shikimori. For example, https://temp-mail.org/ru/

no need, I already resolved it. I'll probably PR tomorrow. I fixed that and labels.