From: Flavio Tordini Date: Wed, 28 Apr 2010 21:20:38 +0000 (+0200) Subject: Remove "feature=youtube_gdata" from YouTube link X-Git-Tag: 1.0~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eb56f57631992143998f22837fecf222391f06f6;p=minitube Remove "feature=youtube_gdata" from YouTube link --- 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);