Skip to content

Commit

Permalink
refactor: headers go BRRRRRRRRT
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudemirovsky committed Jun 3, 2024
1 parent 5165771 commit 0f742fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Bakashi : DooPlay(

// ============================== Popular ===============================
override fun popularAnimeSelector() = "div.items.featured article div.poster"
override fun popularAnimeRequest(page: Int) = GET("$baseUrl/animes/")
override fun popularAnimeRequest(page: Int) = GET("$baseUrl/animes/", headers)

// =============================== Search ===============================
override fun searchAnimeSelector() = "div.result-item article div.thumbnail > a"
Expand Down Expand Up @@ -99,7 +99,7 @@ class Bakashi : DooPlay(
}

// ============================== Filters ===============================
override fun genresListRequest() = GET("$baseUrl/animes/")
override fun genresListRequest() = popularAnimeRequest()
override fun genresListSelector() = "div.filter > div.select:first-child option:not([disabled])"

override fun genresListParse(document: Document): Array<Pair<String, String>> {
Expand Down

0 comments on commit 0f742fc

Please sign in to comment.