mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
anime source : gogoanime
This commit is contained in:
17
anime/source_generator.dart
Normal file
17
anime/source_generator.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:developer';
|
||||
import 'dart:io';
|
||||
import '../model/source.dart';
|
||||
import 'src/en/gogoanime/source.dart';
|
||||
|
||||
void main() {
|
||||
List<Source> _sourcesList = [gogoanimeSource];
|
||||
final List<Map<String, dynamic>> jsonList =
|
||||
_sourcesList.map((source) => source.toJson()).toList();
|
||||
final jsonString = jsonEncode(jsonList);
|
||||
|
||||
final file = File('anime_index.json');
|
||||
file.writeAsStringSync(jsonString);
|
||||
|
||||
log('JSON file created: ${file.path}');
|
||||
}
|
||||
Reference in New Issue
Block a user