Skip to content

Commit

Permalink
fix(animesaturn): parsing (#519)
Browse files Browse the repository at this point in the history
* fix: animesaturn scraper

* Update package.json
  • Loading branch information
aleganza authored Apr 16, 2024
1 parent d05476b commit fcab13b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/providers/anime/animesaturn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/providers/anime/animesaturn.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"lint": "prettier --write .",
"prepare": "husky install",
"test": "jest",
"test:gogoanime": "jest ./test/anime/gogoanime.test.ts",
"test:animeunity": "jest ./test/anime/animeunity.test.ts",
"test:zoro": "jest ./test/anime/zoro.test.ts",
"test:anime": "jest ./test/anime",
"test:books": "jest ./test/books/libgen.test.ts",
"test:comics": "jest ./test/comics",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/anime/animesaturn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class AnimeSaturn extends AnimeParser {
const fakeData = await this.client.get(`${this.baseUrl}ep/${episodeId}`);
const $2 = await load(fakeData.data);

const serverOneUrl = $2("div > a:contains('Streaming')").attr('href'); // scrape from server 1 (m3u8 and mp4 urls)
const serverOneUrl = $2("div > a:contains('Guarda lo streaming')").attr('href'); // scrape from server 1 (m3u8 and mp4 urls)
if (serverOneUrl == null) throw new Error('Invalid url');

let data = await this.client.get(serverOneUrl);
Expand Down

0 comments on commit fcab13b

Please sign in to comment.