From eb9a80c3d9d4661cda429294ac66c9b015ec63d2 Mon Sep 17 00:00:00 2001 From: zyrouge Date: Thu, 30 Nov 2023 20:52:00 +0530 Subject: [PATCH] refactor: derive function module from constant --- modules/anime/gogoanime_bid/module.dart | 4 ++-- modules/anime/gogoanime_bid/src/config.beize | 2 +- modules/anime/gogoanime_bid/src/main.beize | 12 ++++++------ packages/sora_builder/pubspec.lock | 20 ++++++++++++++------ pubspec.lock | 20 ++++++++++++++------ 5 files changed, 37 insertions(+), 21 deletions(-) diff --git a/modules/anime/gogoanime_bid/module.dart b/modules/anime/gogoanime_bid/module.dart index 86d6a33..64bfe82 100644 --- a/modules/anime/gogoanime_bid/module.dart +++ b/modules/anime/gogoanime_bid/module.dart @@ -20,11 +20,11 @@ class GogoAnime extends $AnimeModule { ext.defaultLocale, ), getInfo: (final AnimeExtractor ext) => ext.getInfo( - 'https://www1.gogoanime.bid/category/spy-kyoushitsu', + 'https://anitaku.to/category/spy-kyoushitsu', ext.defaultLocale, ), getSource: (final AnimeExtractor ext) => ext.getSource( - 'https://www1.gogoanime.bid/spy-kyoushitsu-episode-1', + 'https://anitaku.to/spy-kyoushitsu-episode-1', ext.defaultLocale, ), ); diff --git a/modules/anime/gogoanime_bid/src/config.beize b/modules/anime/gogoanime_bid/src/config.beize index 21f75b6..d368e57 100644 --- a/modules/anime/gogoanime_bid/src/config.beize +++ b/modules/anime/gogoanime_bid/src/config.beize @@ -1,4 +1,4 @@ -baseUrl := 'https://gogoanime.hu'; +baseUrl := 'https://anitaku.to'; getSearchUrl := -> terms : Url.ensure( '{}/search.html?keyword={}'.format([baseUrl, terms]) diff --git a/modules/anime/gogoanime_bid/src/main.beize b/modules/anime/gogoanime_bid/src/main.beize index ddcf53d..85308e6 100644 --- a/modules/anime/gogoanime_bid/src/main.beize +++ b/modules/anime/gogoanime_bid/src/main.beize @@ -108,12 +108,12 @@ extractor := { # [] # ); # } - x.classes.contains('streamsb'): { - return debugx.executeAsyncSafe( - -> : streamsb.parse(link, config.defaultLocale), - [] - ); - } + # x.classes.contains('streamsb'): { + # return debugx.executeAsyncSafe( + # -> : streamsb.parse(link, config.defaultLocale), + # [] + # ); + # } else: return []; } }) diff --git a/packages/sora_builder/pubspec.lock b/packages/sora_builder/pubspec.lock index fd58571..22fcdb5 100644 --- a/packages/sora_builder/pubspec.lock +++ b/packages/sora_builder/pubspec.lock @@ -30,7 +30,7 @@ packages: description: path: "packages/beize_compiler" ref: HEAD - resolved-ref: "8669c3486375bfe9af7a13032aaa71af37828202" + resolved-ref: d2962159f7bb04028a20d30a509d18a1ce515847 url: "https://github.com/zyrouge/beize.git" source: git version: "0.0.0" @@ -39,7 +39,7 @@ packages: description: path: "packages/beize_shared" ref: HEAD - resolved-ref: "8669c3486375bfe9af7a13032aaa71af37828202" + resolved-ref: d2962159f7bb04028a20d30a509d18a1ce515847 url: "https://github.com/zyrouge/beize.git" source: git version: "0.0.0" @@ -48,7 +48,7 @@ packages: description: path: "packages/beize_vm" ref: HEAD - resolved-ref: "8669c3486375bfe9af7a13032aaa71af37828202" + resolved-ref: d2962159f7bb04028a20d30a509d18a1ce515847 url: "https://github.com/zyrouge/beize.git" source: git version: "0.0.0" @@ -129,10 +129,10 @@ packages: dependency: transitive description: name: http - sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" + sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139 url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" http_parser: dependency: transitive description: @@ -257,6 +257,14 @@ packages: url: "https://github.com/yukino-org/packages.git" source: git version: "0.0.0" + web: + dependency: transitive + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" yaml: dependency: transitive description: @@ -275,4 +283,4 @@ packages: source: git version: "0.0.0" sdks: - dart: ">=3.1.0 <4.0.0" + dart: ">=3.2.0 <4.0.0" diff --git a/pubspec.lock b/pubspec.lock index 9ff905d..281d356 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -30,7 +30,7 @@ packages: description: path: "packages/beize_compiler" ref: HEAD - resolved-ref: "8669c3486375bfe9af7a13032aaa71af37828202" + resolved-ref: cfb5ad3f753e4166983ae3459c303b1f40a0607c url: "https://github.com/zyrouge/beize.git" source: git version: "0.0.0" @@ -39,7 +39,7 @@ packages: description: path: "packages/beize_shared" ref: HEAD - resolved-ref: "8669c3486375bfe9af7a13032aaa71af37828202" + resolved-ref: cfb5ad3f753e4166983ae3459c303b1f40a0607c url: "https://github.com/zyrouge/beize.git" source: git version: "0.0.0" @@ -48,7 +48,7 @@ packages: description: path: "packages/beize_vm" ref: HEAD - resolved-ref: "8669c3486375bfe9af7a13032aaa71af37828202" + resolved-ref: cfb5ad3f753e4166983ae3459c303b1f40a0607c url: "https://github.com/zyrouge/beize.git" source: git version: "0.0.0" @@ -129,10 +129,10 @@ packages: dependency: transitive description: name: http - sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" + sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139 url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" http_parser: dependency: transitive description: @@ -256,6 +256,14 @@ packages: url: "https://github.com/yukino-org/packages.git" source: git version: "0.0.0" + web: + dependency: transitive + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" yaml: dependency: transitive description: @@ -274,4 +282,4 @@ packages: source: git version: "0.0.0" sdks: - dart: ">=3.1.0 <4.0.0" + dart: ">=3.2.0 <4.0.0"