Kuramanime #41

Open
opened 2024-07-11 08:42:44 -05:00 by kitsu2 · 1 comment
kitsu2 commented 2024-07-11 08:42:44 -05:00 (Migrated from github.com)

Source information

kuramanime 14.13 (Indonesia)

Source language

Indonesia

Steps to reproduce

1.Open the kuramanime extension
2.And it shows no results found

Expected behavior

It should show anime

Actual behavior

Shows only results not found

Aniyomi version

0.16.4.3

Android version

13

Other details

Screenshot_20240711-203901

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • I have updated the app to version 0.15.2.4.
  • I have tried the troubleshooting guide.
  • If this is an issue with the app itself, I should be opening an issue in the app repository.
  • I will fill out all of the requested information in this form.
### Source information kuramanime 14.13 (Indonesia) ### Source language Indonesia ### Steps to reproduce 1.Open the kuramanime extension 2.And it shows no results found ### Expected behavior It should show anime ### Actual behavior Shows only results not found ### Aniyomi version 0.16.4.3 ### Android version 13 ### Other details ![Screenshot_20240711-203901](https://github.com/almightyhak/aniyomi-extensions/assets/137640168/252b902f-f4a3-4586-9fe6-258ccc5d4735) ### Acknowledgements - [X] I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. - [X] I have written a short but informative title. - [X] I have updated the app to version **[0.15.2.4](https://github.com/aniyomiorg/aniyomi/releases/latest)**. - [X] I have tried the [troubleshooting guide](https://aniyomi.org/docs/guides/troubleshooting/). - [X] If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/aniyomiorg/aniyomi/issues/new/choose). - [X] I will fill out all of the requested information in this form.
FurqanHun commented 2024-07-12 16:03:14 -05:00 (Migrated from github.com)

To anyone who tries to fix it:

The URL in popularAnimeRequest at line 41 needs fixing:

    // ============================== Popular ===============================
    override fun popularAnimeRequest(page: Int) = GET("$baseUrl/anime?page=$page")

Update it to:

    // ============================== Popular ===============================
    override fun popularAnimeRequest(page: Int) = GET("$baseUrl/anime?order_by=most_viewed&page=$page")

I've checked that the HTML tags and attributes are all good until:

    // ============================== Episodes ==============================
    override fun episodeListParse(response: Response): List<SEpisode> {
        val document = response.asJsoup()

        val html = document.selectFirst(episodeListSelector())?.attr("data-content")
            ?: return emptyList()

        val newDoc = response.asJsoup(html)

        val limits = newDoc.select("a.btn-secondary")

I didn't bother checking past val limits as I thought, if I could somehow get the popular/latest list, or the search queries first that would be the first step (which I failed in obv).

I got no clue if it's the site acting up, or some library messing up, or the wrong implementation of libraries (which doesn't seem the case to me).

YOU WOULD NEED TO DO PROPER DEBUGGING (which i didn't)

To anyone who tries to fix it: The URL in `popularAnimeRequest` at line 41 needs fixing: ```kt // ============================== Popular =============================== override fun popularAnimeRequest(page: Int) = GET("$baseUrl/anime?page=$page") ``` Update it to: ```kt // ============================== Popular =============================== override fun popularAnimeRequest(page: Int) = GET("$baseUrl/anime?order_by=most_viewed&page=$page") ``` I've checked that the HTML tags and attributes are all good until: ```kt // ============================== Episodes ============================== override fun episodeListParse(response: Response): List<SEpisode> { val document = response.asJsoup() val html = document.selectFirst(episodeListSelector())?.attr("data-content") ?: return emptyList() val newDoc = response.asJsoup(html) val limits = newDoc.select("a.btn-secondary") ``` I didn't bother checking past `val limits` as I thought, if I could somehow get the popular/latest list, or the search queries first that would be the first step (which I failed in obv). I got no clue if it's the site acting up, or some library messing up, or the wrong implementation of libraries (which doesn't seem the case to me). ## YOU WOULD NEED TO DO PROPER DEBUGGING (which i didn't)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AlmightyHak/extensions-source#41
No description provided.