mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-20 08:02:16 +00:00
finish "explore" addition
This commit is contained in:
parent
06681ffda6
commit
33137025ad
2 changed files with 2 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ struct ModuleMetadata: Codable, Hashable {
|
|||
let quality: String
|
||||
let searchBaseUrl: String
|
||||
let scriptUrl: String
|
||||
let exploreAsyncJS: Bool?
|
||||
let exploreBaseUrl: String?
|
||||
let exploreScriptUrl: String?
|
||||
let asyncJS: Bool?
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ struct ExploreView: View {
|
|||
}
|
||||
|
||||
jsController.loadScript(jsContent)
|
||||
if module.metadata.asyncJS == true {
|
||||
if module.metadata.exploreAsyncJS == true {
|
||||
jsController.fetchJsExploreResults(module: module) { items in
|
||||
exploreItems = items
|
||||
hasNoResults = items.isEmpty
|
||||
|
|
|
|||
Loading…
Reference in a new issue