| 113 | } |
| 114 | |
| 115 | bool DanmuScript::supportURL(const QString &url) |
| 116 | { |
| 117 | bool supported = false; |
| 118 | for(const QString &s : supportedURLsRe) |
| 119 | { |
| 120 | QRegularExpression re(s); |
| 121 | QRegularExpressionMatch match = re.match(url); |
| 122 | if(match.capturedLength(0) == url.length()) |
| 123 | { |
| 124 | supported = true; |
| 125 | break; |
| 126 | } |
| 127 | } |
| 128 | return supported; |
| 129 | } |
| 130 | |
| 131 | QString DanmuScript::callGetSources(const char *fname, const QVariant ¶m, bool passOption, QList<DanmuSource> &results) |
| 132 | { |