]> git.sur5r.net Git - minitube/commitdiff
Imported Upstream version 2.5.2 upstream/2.5.2
authorJakob Haufe <sur5r@sur5r.net>
Sun, 13 Mar 2016 21:53:39 +0000 (22:53 +0100)
committerJakob Haufe <sur5r@sur5r.net>
Sun, 13 Mar 2016 21:53:39 +0000 (22:53 +0100)
CHANGES
locale/pt.ts
locale/uk_UA.ts
minitube.pro
src/video.cpp

diff --git a/CHANGES b/CHANGES
index 1b5a982fe6dede42122d6d27f69edf797666b673..52d3333b890df058ffa65e1e3cd882f866ad6208 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+2.5.2
+- Fixed VEVO videos
+
+2.5.1
+- Fixed VEVO videos
+
 2.5
 - Upgraded to Qt 5
 - HiDPI (aka Retina Display) support
index ed538f882a4633fd78cd33a7db5fe5dd8e4de523..b3e8dd17c14b76f6bd0e5fefd9b7a3166367537b 100644 (file)
     <message>
         <location filename="src/datautils.cpp" line="88"/>
         <source>Just now</source>
-        <translation type="unfinished"/>
+        <translation>Agora mesmo</translation>
     </message>
     <message numerus="yes">
         <location filename="src/datautils.cpp" line="90"/>
     <message>
         <location filename="local/src/extra.cpp" line="251"/>
         <source>The executable file has been tempered with, maybe by a virus.</source>
-        <translation type="unfinished"/>
+        <translation>O arquivo executável foi temperada com, talvez por um vírus.</translation>
     </message>
     <message>
         <location filename="local/src/extra.cpp" line="252"/>
         <source>%1 will not run. Try installing again.</source>
-        <translation type="unfinished"/>
+        <translation>%1 não será executado. Tente instalar novamente.</translation>
     </message>
     <message>
         <location filename="local/src/extra.cpp" line="253"/>
         <source>Quit</source>
-        <translation type="unfinished"/>
+        <translation>Sair</translation>
     </message>
     <message>
         <location filename="local/src/extra.cpp" line="254"/>
         <source>Reinstall</source>
-        <translation type="unfinished"/>
+        <translation>Reinstalar</translation>
     </message>
 </context>
 <context>
     <message>
         <location filename="src/mainwindow.cpp" line="566"/>
         <source>&amp;Adjust Window Size</source>
-        <translation type="unfinished"/>
+        <translation>&amp;Ajuste o tamanho da janela</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="571"/>
     <message>
         <location filename="src/mainwindow.cpp" line="1158"/>
         <source>&amp;Loading...</source>
-        <translation type="unfinished"/>
+        <translation>&amp;Carregando...</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="1264"/>
     <message>
         <location filename="src/mediaview.cpp" line="1166"/>
         <source>Unsubscribed from %1</source>
-        <translation type="unfinished"/>
+        <translation>Não subscrito de %1</translation>
     </message>
     <message>
         <location filename="src/mediaview.cpp" line="1169"/>
         <source>Subscribed to %1</source>
-        <translation type="unfinished"/>
+        <translation>Subscrito %1</translation>
     </message>
     <message>
         <location filename="src/mediaview.cpp" line="808"/>
index 56433ecff5c2341d6db4abd7679edeb7e754324e..85f04d7038616a16d6771b6ad8a961c359af1d6f 100644 (file)
     <message>
         <location filename="src/datautils.cpp" line="88"/>
         <source>Just now</source>
-        <translation type="unfinished"/>
+        <translation>Тільки зараз</translation>
     </message>
     <message numerus="yes">
         <location filename="src/datautils.cpp" line="90"/>
     <message>
         <location filename="local/src/extra.cpp" line="252"/>
         <source>%1 will not run. Try installing again.</source>
-        <translation type="unfinished"/>
+        <translation>%1 не буде працювати. Спробуйте встановити заново</translation>
     </message>
     <message>
         <location filename="local/src/extra.cpp" line="253"/>
         <source>Quit</source>
-        <translation type="unfinished"/>
+        <translation>Вийти</translation>
     </message>
     <message>
         <location filename="local/src/extra.cpp" line="254"/>
         <source>Reinstall</source>
-        <translation type="unfinished"/>
+        <translation>Перевстановити</translation>
     </message>
 </context>
 <context>
     <message>
         <location filename="src/mainwindow.cpp" line="566"/>
         <source>&amp;Adjust Window Size</source>
-        <translation type="unfinished"/>
+        <translation>&amp;Змінити розмір вікна</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="571"/>
         <source>&amp;Stop After This Video</source>
-        <translation>Зу&amp;пинити після цього видиво</translation>
+        <translation>&amp;Зупинити після цього відео</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="578"/>
     <message>
         <location filename="src/mainwindow.cpp" line="597"/>
         <source>&amp;Related Videos</source>
-        <translation>Схо&amp;жі видива</translation>
+        <translation>&amp;Схожі відео</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="599"/>
         <source>Watch videos related to the current one</source>
-        <translation>Дивитися видива, пов’язані з поточним</translation>
+        <translation>Дивитися відео, пов’язані з поточним</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="605"/>
     <message>
         <location filename="src/mainwindow.cpp" line="670"/>
         <source>&amp;Video</source>
-        <translation>&amp;Видиво</translation>
+        <translation>&amp;Відео</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="686"/>
     <message>
         <location filename="src/mainwindow.cpp" line="1158"/>
         <source>&amp;Loading...</source>
-        <translation type="unfinished"/>
+        <translation>&amp;Завантаження...</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="1264"/>
     <message>
         <location filename="src/mainwindow.cpp" line="362"/>
         <source>Copy the Video Stream &amp;URL</source>
-        <translation>Копіювати посилання на ви&amp;диво потік</translation>
+        <translation>Копіювати посилання на ві&amp;део-потік</translation>
     </message>
     <message>
         <location filename="src/mainwindow.cpp" line="369"/>
     <message>
         <location filename="src/mediaview.cpp" line="1166"/>
         <source>Unsubscribed from %1</source>
-        <translation type="unfinished"/>
+        <translation>Підписка на %1 анульована</translation>
     </message>
     <message>
         <location filename="src/mediaview.cpp" line="1169"/>
         <source>Subscribed to %1</source>
-        <translation type="unfinished"/>
+        <translation>Підписка на %1 оформлена</translation>
     </message>
     <message>
         <location filename="src/mediaview.cpp" line="808"/>
index e218ab84f89a92ebbf622dc014bb4e646f5c3a66..42d8808643c44910068dbdfac6cd08478f665608 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG += release
 TEMPLATE = app
-VERSION = 2.5.1
+VERSION = 2.5.2
 DEFINES += APP_VERSION="$$VERSION"
 
 APP_NAME = Minitube
index 5a1dbd00d2fdd00ea5dc7eb090471f9e409bcca2..a5cade0f858b6428c4b2ba1312a0789209f74ab6 100644 (file)
@@ -356,7 +356,7 @@ void Video::parseJsPlayer(const QByteArray &bytes) {
     } else {
         sigFuncName = funcNameRe.cap(1);
         captureFunction(sigFuncName, js);
-        // qWarning() << sigFunctions;
+        // qWarning() << sigFunctions << sigObjects;
     }
 
 #ifdef APP_DASH
@@ -404,16 +404,27 @@ void Video::parseDashManifest(const QByteArray &bytes) {
 }
 
 void Video::captureFunction(const QString &name, const QString &js) {
-    QRegExp funcRe("function\\s+" + QRegExp::escape(name) + "\\s*\\([" + jsNameChars + ",\\s]*\\)\\s*\\{[^\\}]+\\}");
-    if (funcRe.indexIn(js) == -1) {
+    const QString argsAndBody = "\\s*\\([" + jsNameChars + ",\\s]*\\)\\s*\\{[^\\}]+\\}";
+    QString func;
+    QRegExp funcRe("function\\s+" + QRegExp::escape(name) + argsAndBody);
+    if (funcRe.indexIn(js) != -1) {
+        func = funcRe.cap(0);
+    } else {
         // try var foo = function(bar) { };
-        funcRe = QRegExp("var\\s+" + QRegExp::escape(name) + "\\s*=\\s*function\\s*\\([" + jsNameChars + ",\\s]*\\)\\s*\\{[^\\}]+\\}");
-        if (funcRe.indexIn(js) == -1) {
-            qWarning() << "Cannot capture function" << name;
-            return;
+        funcRe = QRegExp("var\\s+" + QRegExp::escape(name) + "\\s*=\\s*function" + argsAndBody);
+        if (funcRe.indexIn(js) != -1) {
+            func = funcRe.cap(0);
+        } else {
+            // try ,gr= function(bar) { };
+            funcRe = QRegExp("[,\\s;}\\.\\)](" + QRegExp::escape(name) + "\\s*=\\s*function" + argsAndBody + ")");
+            if (funcRe.indexIn(js) != -1) {
+                func = funcRe.cap(1);
+            } else {
+                qWarning() << "Cannot capture function" << name;
+                return;
+            }
         }
     }
-    QString func = funcRe.cap(0);
     sigFunctions.insert(name, func);
 
     // capture inner functions
@@ -438,7 +449,7 @@ void Video::captureFunction(const QString &name, const QString &js) {
 }
 
 void Video::captureObject(const QString &name, const QString &js) {
-    QRegExp re("var\\s+" + QRegExp::escape(name) + "\\s*=\\s*\\{.+\\}\\s*;");
+    QRegExp re("var\\s+" + QRegExp::escape(name) + "\\s*=\\s*\\{.*\\}\\s*;");
     re.setMinimal(true);
     if (re.indexIn(js) == -1) {
         qWarning() << "Cannot capture object" << name;