void Plugin::parse(const char *url, bool is_down) { int options = (Settings::quality == Settings::SUPER) ? OPT_QL_SUPER : (Settings::quality == Settings::HIGH) ? OPT_QL_HIGH : 0; if (is_down) options |= OPT_DOWNLOAD; call_py_func_vsi(parseFunc, url, options); }
void Plugin::searchAlbum(const QString &kw, int page) { Q_ASSERT(searchAlbumFunc); call_py_func_vsi(searchAlbumFunc, kw.toUtf8().constData(), page); }
void Plugin::search(const QString &kw, int page) { call_py_func_vsi(searchFunc, kw.toUtf8().constData(), page); }