update anime_index

This commit is contained in:
kodjomoustapha
2023-08-02 23:45:18 +01:00
parent e35c48b60d
commit 2e33247878
2 changed files with 4 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
import '../../../../model/source.dart'; import '../../../../model/source.dart';
Source get wcostreamSource => _wcostreamSource; Source get wcostreamSource => _wcostreamSource;
const wcostreamVersion = "0.0.11"; const wcostreamVersion = "0.0.1";
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/en/wcostream/wcostream-v$wcostreamVersion.dart";
Source _wcostreamSource = Source( Source _wcostreamSource = Source(
name: "WCOStream", name: "WCOStream",
baseUrl: "https://www.wcostream.org", baseUrl: "https://www.wcostream.org",

View File

@@ -2,10 +2,10 @@ import 'dart:convert';
import 'package:bridge_lib/bridge_lib.dart'; import 'package:bridge_lib/bridge_lib.dart';
getPopularAnime(MangaModel anime) async { getPopularAnime(MangaModel anime) async {
return await getLatestUpdatesAnime(anime); return await getLatestUpdatesManga(anime);
} }
Future<MangaModel> getLatestUpdatesAnime(MangaModel anime) async { Future<MangaModel> getLatestUpdatesManga(MangaModel anime) async {
final data = { final data = {
"url": anime.baseUrl, "url": anime.baseUrl,
"headers": {"Referer": "https://wcostream.org/"}, "headers": {"Referer": "https://wcostream.org/"},