From: Flavio Date: Sat, 3 Mar 2012 14:18:28 +0000 (+0100) Subject: Fix YT video ids containing "-" X-Git-Tag: 1.7.1~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4623531bb3453048192f80e5e7d6c1775b407c24;p=minitube Fix YT video ids containing "-" --- diff --git a/src/youtubesearch.cpp b/src/youtubesearch.cpp index cd6cff1..5eced60 100644 --- a/src/youtubesearch.cpp +++ b/src/youtubesearch.cpp @@ -77,6 +77,7 @@ QString YouTubeSearch::videoIdFromUrl(QString url) { QRegExp re = QRegExp("^.*\\?v=([^&]+).*$"); if (re.exactMatch(url)) { QString videoId = re.cap(1); + videoId.remove('-'); return videoId; } return QString();