From eb56f57631992143998f22837fecf222391f06f6 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 28 Apr 2010 23:20:38 +0200 Subject: [PATCH] Remove "feature=youtube_gdata" from YouTube link --- src/MediaView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MediaView.cpp b/src/MediaView.cpp index 2b096ea..8735f8a 100644 --- a/src/MediaView.cpp +++ b/src/MediaView.cpp @@ -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(window()); QString message = tr("You can now paste the YouTube link into another application"); if (mainWindow) mainWindow->statusBar()->showMessage(message); -- 2.39.5