Skip to content

Commit

Permalink
Merge branch 'consumet:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
2004durgesh authored Jan 8, 2025
2 parents 649f77c + 2bdc766 commit 9e3dd5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/providers/anime/animeunity.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/animeunity.js.map

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

4 changes: 3 additions & 1 deletion src/providers/anime/animeunity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ class AnimeUnity extends AnimeParser {
.text()
?.match(/expires': '(.*)'/)![1];

const defaultUrl = `${domain}?token=${token}&referer=&expires=${expires}&h=1`;
const defaultUrl = `${domain}${
domain.includes('?') ? '&' : '?'
}token=${token}&referer=&expires=${expires}&h=1`;
const m3u8Content = await this.client.get(defaultUrl);

if (m3u8Content.data.includes('EXTM3U')) {
Expand Down

0 comments on commit 9e3dd5c

Please sign in to comment.