NOISSUE add silly twitch URL and CCIP resolving page to 'add instance'

It needs a few more steps and it will handle all kinds of twitch packs.
This commit is contained in:
Petr Mrázek
2019-06-27 03:20:11 +02:00
parent 917f148fc4
commit fde43c993e
7 changed files with 245 additions and 4 deletions

View File

@ -75,6 +75,11 @@ void ImportPage::updateState()
}
else
{
if(input.endsWith("?client=y")) {
input.chop(9);
input.append("/file");
url = QUrl::fromUserInput(input);
}
// hook, line and sinker.
QFileInfo fi(url.fileName());
dialog->setSuggestedPack(fi.completeBaseName(), new InstanceImportTask(url));