mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
fix baseUrl
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import '../../../../model/source.dart';
|
||||
|
||||
Source get wcostreamSource => _wcostreamSource;
|
||||
const wcostreamVersion = "0.0.1";
|
||||
const wcostreamVersion = "0.0.11";
|
||||
const wcostreamSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/fr/wcostream/wcostream-v$wcostreamVersion.dart";
|
||||
Source _wcostreamSource = Source(
|
||||
name: "WCOStream",
|
||||
baseUrl: "https://wcostream.fr",
|
||||
apiUrl: "https://api.wcostream.fr",
|
||||
baseUrl: "https://www.wcostream.org",
|
||||
lang: "en",
|
||||
typeSource: "single",
|
||||
iconUrl: '',
|
||||
|
||||
@@ -7,7 +7,7 @@ getPopularAnime(MangaModel anime) async {
|
||||
|
||||
Future<MangaModel> getLatestUpdatesAnime(MangaModel anime) async {
|
||||
final data = {
|
||||
"url": "https://www.wcostream.org",
|
||||
"url": anime.baseUrl,
|
||||
"headers": {"Referer": "https://wcostream.org/"},
|
||||
"sourceId": anime.sourceId
|
||||
};
|
||||
@@ -50,7 +50,7 @@ String fixUrl(String url) {
|
||||
}
|
||||
|
||||
getAnimeDetail(MangaModel anime) async {
|
||||
final url = 'https://www.wcostream.org${anime.link}';
|
||||
final url = '${anime.baseUrl}${anime.link}';
|
||||
print(url);
|
||||
final data = {
|
||||
"url": url,
|
||||
@@ -88,9 +88,9 @@ getAnimeDetail(MangaModel anime) async {
|
||||
|
||||
searchAnime(MangaModel anime) async {
|
||||
final data = {
|
||||
"url": "https://www.wcostream.org/search",
|
||||
"url": "${anime.baseUrl}/search",
|
||||
"fields": {'catara': anime.query.replaceAll(" ", "+"), 'konuara': 'series'},
|
||||
"headers": {"Referer": "https://www.wcostream.org/"},
|
||||
"headers": {"Referer": "${anime.baseUrl}/"},
|
||||
"sourceId": anime.sourceId
|
||||
};
|
||||
final res = await MBridge.httpMultiparFormData(json.encode(data), 1);
|
||||
@@ -154,7 +154,7 @@ getVideoList(MangaModel anime) async {
|
||||
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
|
||||
'Connection': 'keep-alive',
|
||||
'Host': MBridge.listParse(iframeUrl.split('/'), 0)[2],
|
||||
'Referer': 'https://www.wcostream.org/',
|
||||
'Referer': '${anime.baseUrl}/',
|
||||
'Sec-Fetch-Dest': 'iframe',
|
||||
'Sec-Fetch-Mode': 'navigate',
|
||||
'Sec-Fetch-Site': 'cross-site',
|
||||
Reference in New Issue
Block a user