]> git.sur5r.net Git - minitube/commitdiff
Remove "feature=youtube_gdata" from YouTube link
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 28 Apr 2010 21:20:38 +0000 (23:20 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 28 Apr 2010 21:20:38 +0000 (23:20 +0200)
src/MediaView.cpp

index 2b096eaba928c74d90b4e89bc103cd8fd0c68273..8735f8aaae1ee59ca8f7c952c5bb0224551b0b2f 100644 (file)
@@ -334,7 +334,9 @@ void MediaView::openWebPage() {
 void MediaView::copyWebPage() {
     Video* video = listModel->activeVideo();
     if (!video) return;
-    QApplication::clipboard()->setText(video->webpage().toString());
+    QString address = video->webpage().toString();
+    address.remove("&feature=youtube_gdata");
+    QApplication::clipboard()->setText(address);
     QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(window());
     QString message = tr("You can now paste the YouTube link into another application");
     if (mainWindow) mainWindow->statusBar()->showMessage(message);