From 4623531bb3453048192f80e5e7d6c1775b407c24 Mon Sep 17 00:00:00 2001 From: Flavio Date: Sat, 3 Mar 2012 15:18:28 +0100 Subject: [PATCH] Fix YT video ids containing "-" --- src/youtubesearch.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5