Skip to content

Commit

Permalink
refactor: derive function module from constant
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 30, 2023
1 parent 6ce0200 commit eb9a80c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 21 deletions.
4 changes: 2 additions & 2 deletions modules/anime/gogoanime_bid/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
Expand Down
2 changes: 1 addition & 1 deletion modules/anime/gogoanime_bid/src/config.beize
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseUrl := 'https://gogoanime.hu';
baseUrl := 'https://anitaku.to';

getSearchUrl := -> terms : Url.ensure(
'{}/search.html?keyword={}'.format([baseUrl, terms])
Expand Down
12 changes: 6 additions & 6 deletions modules/anime/gogoanime_bid/src/main.beize
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
})
Expand Down
20 changes: 14 additions & 6 deletions packages/sora_builder/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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"
20 changes: 14 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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"

0 comments on commit eb9a80c

Please sign in to comment.