Skip to content

Commit

Permalink
Fix bilibili
Browse files Browse the repository at this point in the history
  • Loading branch information
riimuru committed Nov 1, 2022
1 parent 5d3623e commit 64542ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/providers/anime/bilibili.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/bilibili.js.map

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@consumet/extensions",
"version": "1.2.4",
"version": "1.2.5",
"description": "Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/anime/bilibili.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Bilibili extends AnimeParser {
constructor(cookie?: string, locale?: string) {
super();
this.locale = locale ?? this.locale;
if (!cookie) throw new Error('Cookie is required');
if (!cookie) return;
this.cookie = cookie;
}

Expand Down

0 comments on commit 64542ab

Please sign in to comment.