Skip to content
Permalink
Browse files

WBackendYoutube: Fix implementation

  • Loading branch information...
3unjee committed Jun 11, 2019
1 parent 0860fb3 commit 39c896d7fabfde06cb0cefc5c981641747285b5e
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/SkBackend/src/media/WBackendYoutube.cpp
  2. +1 −1 src/SkGui/src/graphicsview/WViewDrag.cpp
@@ -188,7 +188,7 @@ QString WBackendYoutubePrivate::extractUrl(const QString & data) const

if (signature.isEmpty() == false)
{
return WControllerNetwork::decodeUrl(url) + "&s=" + signature;
return WControllerNetwork::decodeUrl(url + "&s=" + signature);
}
}

@@ -307,7 +307,7 @@ void WBackendYoutubePrivate::applySignature(QString * source, QScriptValue * val
void WBackendYoutubePrivate::applySignature(QString * source, QJSValue * value) const
#endif
{
QRegExp regExp("&s=([a-fA-F0-9\\.]+)");
QRegExp regExp("&s=([a-fA-F0-9\\.\\-\\_\\=]+)");

QString signature = Sk::extract(*source, regExp.pattern(), 1);

@@ -317,7 +317,7 @@ void WBackendYoutubePrivate::applySignature(QString * source, QJSValue * value)
signature = value->call(QJSValueList() << signature).toString();
#endif

source->replace(regExp, "&signature=" + signature);
source->replace(regExp, "&sig=" + signature);
}

//-------------------------------------------------------------------------------------------------
@@ -158,7 +158,7 @@ void WViewDragPrivate::clearDrag()

ReleaseCapture();

// FIXME Qt 5.12.2: Touch drag seems to be broken, unless we double tap.
// FIXME Qt 5.12.3: Touch drag seems to be broken, unless we double tap.
PostMessage((HWND) d->view->winId(), WM_SYSCOMMAND, 0xf012, 0);
#else
QRect geometry = d->view->availableGeometry();

0 comments on commit 39c896d

Please sign in to comment.
You can’t perform that action at this time.