]> git.sur5r.net Git - minitube/commitdiff
Fix YT video ids containing "-"
authorFlavio <flavio@odisseo.local>
Sat, 3 Mar 2012 14:18:28 +0000 (15:18 +0100)
committerFlavio <flavio@odisseo.local>
Sat, 3 Mar 2012 14:18:28 +0000 (15:18 +0100)
src/youtubesearch.cpp

index cd6cff1df49e0268ce9fd6eb01c323171f294adc..5eced6080b0bbc4b471a1f8fe33ea4d0466fc6c8 100644 (file)
@@ -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();