-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bilibi : support more languages (#5248)
* Bilibi : support more languages They support more language than Hakuneko. Currently we have 2 connectors : english and chinese. Urls are differents Now they also have mangas in french, spanish, and indonesian. We just have to put a language code in one api request The catch is : you get a different manga ID for a manga and a language. Therefore for gathering mangas list we have to performs loops with langage codes but there will be more manga displayed in list (if we make Bibili 'english' => multilingual') Or we make different connectors with just a langage code different But then, since url of website is the same, clipboard copy wont work as many website will have the exact same url
- Loading branch information
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import BilibiliManhua from './BilibiliManhua.mjs'; | ||
|
||
export default class BilibiliComicsES extends BilibiliManhua { | ||
|
||
constructor() { | ||
super(); | ||
super.id = 'bilibili-comics-es'; | ||
super.label = 'Bilibili Comics (Spanish)'; | ||
this.tags = [ 'webtoon', 'spanish' ]; | ||
this.url = 'https://www.bilibilicomics.com'; | ||
this.lang = 'es'; | ||
} | ||
get icon() { | ||
return '/img/connectors/bilibili-comics'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import BilibiliManhua from './BilibiliManhua.mjs'; | ||
|
||
export default class BilibiliComicsFR extends BilibiliManhua { | ||
|
||
constructor() { | ||
super(); | ||
super.id = 'bilibili-comics-fr'; | ||
super.label = 'Bilibili Comics (French)'; | ||
this.tags = [ 'webtoon', 'french' ]; | ||
this.url = 'https://www.bilibilicomics.com'; | ||
this.lang = 'fr'; | ||
} | ||
get icon() { | ||
return '/img/connectors/bilibili-comics'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import BilibiliManhua from './BilibiliManhua.mjs'; | ||
|
||
export default class BilibiliComicsID extends BilibiliManhua { | ||
|
||
constructor() { | ||
super(); | ||
super.id = 'bilibili-comics-id'; | ||
super.label = 'Bilibili Comics (Indonesian)'; | ||
this.tags = [ 'webtoon', 'indonesian' ]; | ||
this.url = 'https://www.bilibilicomics.com'; | ||
this.lang = 'id'; | ||
} | ||
get icon() { | ||
return '/img/connectors/bilibili-comics'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters