From fe37e0824b725d2b6cb9163bc21e41618ab3e6ef Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 15 Sep 2009 23:06:27 +0200 Subject: [PATCH] Workaround the new YouTube URLs --- src/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video.cpp b/src/video.cpp index c4c3575..0fb30b3 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -36,7 +36,7 @@ void Video::scrapeStreamUrl() { // Get Video ID // youtube-dl line 428 // QRegExp re("^((?:http://)?(?:\\w+\\.)?youtube\\.com/(?:(?:v/)|(?:(?:watch(?:\\.php)?)?\\?(?:.+&)?v=)))?([0-9A-Za-z_-]+)(?(1).+)?$"); - QRegExp re("^http://www\\.youtube\\.com/watch\\?v=([0-9A-Za-z_-]+)$"); + QRegExp re("^http://www\\.youtube\\.com/watch\\?v=([0-9A-Za-z_-]+).*"); bool match = re.exactMatch(webpage.toString()); if (!match || re.numCaptures() < 1) { emit errorStreamUrl(QString("Cannot get video id for %1").arg(webpage.toString())); -- 2.39.5