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 'dart:io';
|
||||||
import '../model/source.dart';
|
import '../model/source.dart';
|
||||||
import 'src/en/gogoanime/source.dart';
|
import 'src/en/gogoanime/source.dart';
|
||||||
|
import 'src/fr/franime/source.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
List<Source> _sourcesList = [gogoanimeSource];
|
List<Source> _sourcesList = [gogoanimeSource, franimeSource];
|
||||||
final List<Map<String, dynamic>> jsonList =
|
final List<Map<String, dynamic>> jsonList =
|
||||||
_sourcesList.map((source) => source.toJson()).toList();
|
_sourcesList.map((source) => source.toJson()).toList();
|
||||||
final jsonString = jsonEncode(jsonList);
|
final jsonString = jsonEncode(jsonList);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import 'package:bridge_lib/bridge_lib.dart';
|
|||||||
Future<String> dataBase(int sourceId) async {
|
Future<String> dataBase(int sourceId) async {
|
||||||
final data = {
|
final data = {
|
||||||
"url": "https://api.franime.fr/api/animes/",
|
"url": "https://api.franime.fr/api/animes/",
|
||||||
"headers": {"Referer": "https://franime.fr/"},
|
"headers": {"Referer": "https://franime.fr"},
|
||||||
"sourceId": sourceId
|
"sourceId": sourceId
|
||||||
};
|
};
|
||||||
final res = await MBridge.http(json.encode(data), 0);
|
final res = await MBridge.http(json.encode(data), 0);
|
||||||
@@ -14,7 +14,7 @@ Future<String> dataBase(int sourceId) async {
|
|||||||
getPopularAnime(MangaModel anime) async {
|
getPopularAnime(MangaModel anime) async {
|
||||||
final data = {
|
final data = {
|
||||||
"url": "https://api.franime.fr/api/animes/",
|
"url": "https://api.franime.fr/api/animes/",
|
||||||
"headers": {"Referer": "https://franime.fr/"},
|
"headers": {"Referer": "https://franime.fr"},
|
||||||
"sourceId": anime.sourceId
|
"sourceId": anime.sourceId
|
||||||
};
|
};
|
||||||
final res = await MBridge.http(json.encode(data), 0);
|
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;
|
Source get franimeSource => _franimeSource;
|
||||||
const franimeVersion = "0.0.1";
|
const franimeVersion = "0.0.11";
|
||||||
const franimeSourceCodeUrl =
|
const franimeSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/fr/franime/franime-v$franimeVersion.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/fr/franime/franime-v$franimeVersion.dart";
|
||||||
Source _franimeSource = Source(
|
Source _franimeSource = Source(
|
||||||
@@ -62,6 +62,7 @@ class Source {
|
|||||||
"apiUrl": apiUrl,
|
"apiUrl": apiUrl,
|
||||||
"version": version,
|
"version": version,
|
||||||
"isManga": isManga,
|
"isManga": isManga,
|
||||||
|
"isFullData": isFullData
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user