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