mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
fix source code url
This commit is contained in:
@@ -3,9 +3,10 @@ import 'dart:developer';
|
||||
import 'dart:io';
|
||||
import '../model/source.dart';
|
||||
import 'src/en/gogoanime/source.dart';
|
||||
import 'src/fr/franime/source.dart';
|
||||
|
||||
void main() {
|
||||
List<Source> _sourcesList = [gogoanimeSource];
|
||||
List<Source> _sourcesList = [gogoanimeSource, franimeSource];
|
||||
final List<Map<String, dynamic>> jsonList =
|
||||
_sourcesList.map((source) => source.toJson()).toList();
|
||||
final jsonString = jsonEncode(jsonList);
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:bridge_lib/bridge_lib.dart';
|
||||
Future<String> dataBase(int sourceId) async {
|
||||
final data = {
|
||||
"url": "https://api.franime.fr/api/animes/",
|
||||
"headers": {"Referer": "https://franime.fr/"},
|
||||
"headers": {"Referer": "https://franime.fr"},
|
||||
"sourceId": sourceId
|
||||
};
|
||||
final res = await MBridge.http(json.encode(data), 0);
|
||||
@@ -14,7 +14,7 @@ Future<String> dataBase(int sourceId) async {
|
||||
getPopularAnime(MangaModel anime) async {
|
||||
final data = {
|
||||
"url": "https://api.franime.fr/api/animes/",
|
||||
"headers": {"Referer": "https://franime.fr/"},
|
||||
"headers": {"Referer": "https://franime.fr"},
|
||||
"sourceId": anime.sourceId
|
||||
};
|
||||
final res = await MBridge.http(json.encode(data), 0);
|
||||
@@ -1,7 +1,7 @@
|
||||
import '../../../model/source.dart';
|
||||
import '../../../../model/source.dart';
|
||||
|
||||
Source get franimeSource => _franimeSource;
|
||||
const franimeVersion = "0.0.1";
|
||||
const franimeVersion = "0.0.11";
|
||||
const franimeSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/fr/franime/franime-v$franimeVersion.dart";
|
||||
Source _franimeSource = Source(
|
||||
Reference in New Issue
Block a user