diff options
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/modplatform/flame/UrlResolvingTask.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/logic/modplatform/flame/UrlResolvingTask.cpp b/api/logic/modplatform/flame/UrlResolvingTask.cpp index 9d53e7e5..efea350c 100644 --- a/api/logic/modplatform/flame/UrlResolvingTask.cpp +++ b/api/logic/modplatform/flame/UrlResolvingTask.cpp @@ -21,6 +21,11 @@ void Flame::UrlResolvingTask::resolveUrl() { setStatus(tr("Resolving URL...")); setProgress(0, 1); + QUrl actualUrl(m_url); + if(actualUrl.host() != "www.curseforge.com") { + emitFailed(tr("Not a Twitch URL.")); + return; + } m_dljob.reset(new NetJob("URL resolver")); bool weAreDigging = false; |