MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / setDefaultMatchScript

Method setDefaultMatchScript

MediaLibrary/animeprovider.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void AnimeProvider::setDefaultMatchScript(const QString &scriptId)
65{
66 if(!matchProviderIds.contains(scriptId)) return;
67 auto script = GlobalObjects::scriptManager->getScript(scriptId).staticCast<MatchScript>();
68 if(!script) return;
69 defaultMatchScriptId = scriptId;
70 GlobalObjects::appSetting->setValue(setting_MatchScriptId, scriptId);
71 emit defaultMacthProviderChanged(script->name(), scriptId);
72}
73
74ScriptState AnimeProvider::animeSearch(const QString &scriptId, const QString &keyword, const QMap<QString, QString> &options, QList<AnimeLite> &results)
75{

Callers 1

initEpMatchAreaMethod · 0.80

Calls 4

containsMethod · 0.45
getScriptMethod · 0.45
setValueMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected