Skip to content

Commit

Permalink
Only append "signature" param when not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviotordini committed May 10, 2019
1 parent 2a99951 commit dca7f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ytvideo.cpp
Expand Up @@ -146,7 +146,7 @@ void YTVideo::parseFmtUrlMap(const QString &fmtUrlMap, bool fromWebPage) {
}
if (format == -1 || url.isNull()) continue;

url += QLatin1String("&signature=") + sig;
if (!sig.isEmpty()) url += QLatin1String("&signature=") + sig;

if (!url.contains(QLatin1String("ratebypass"))) url += QLatin1String("&ratebypass=yes");

Expand Down

0 comments on commit dca7f38

Please sign in to comment.