| 62 | } |
| 63 | |
| 64 | void 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 | |
| 74 | ScriptState AnimeProvider::animeSearch(const QString &scriptId, const QString &keyword, const QMap<QString, QString> &options, QList<AnimeLite> &results) |
| 75 | { |
no test coverage detected