Hello community, here is the log from the commit of package minitube for openSUSE:Factory checked in at 2016-02-01 19:57:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/minitube (Old) and /work/SRC/openSUSE:Factory/.minitube.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "minitube" Changes: -------- --- /work/SRC/openSUSE:Factory/minitube/minitube.changes 2015-11-26 17:03:33.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.minitube.new/minitube.changes 2016-02-01 19:57:25.000000000 +0100 @@ -1,0 +2,6 @@ +Sun Jan 24 10:23:20 UTC 2016 - [email protected] + +- update to 2.5.2 + * solves an issue with VEVO videos + +------------------------------------------------------------------- Old: ---- minitube-2.5.1.tar.gz New: ---- minitube-2.5.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ minitube.spec ++++++ --- /var/tmp/diff_new_pack.x3uTPT/_old 2016-02-01 19:57:26.000000000 +0100 +++ /var/tmp/diff_new_pack.x3uTPT/_new 2016-02-01 19:57:26.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package minitube # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: minitube -Version: 2.5.1 +Version: 2.5.2 Release: 0 Summary: Native YouTube Client License: GPL-3.0+ ++++++ minitube-2.5.1.tar.gz -> minitube-2.5.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minitube-2.5.1/CHANGES new/minitube-2.5.2/CHANGES --- old/minitube-2.5.1/CHANGES 2015-11-13 17:48:44.000000000 +0100 +++ new/minitube-2.5.2/CHANGES 2015-12-20 14:27:18.000000000 +0100 @@ -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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minitube-2.5.1/locale/pt.ts new/minitube-2.5.2/locale/pt.ts --- old/minitube-2.5.1/locale/pt.ts 2015-11-13 17:48:44.000000000 +0100 +++ new/minitube-2.5.2/locale/pt.ts 2015-12-20 14:27:18.000000000 +0100 @@ -241,7 +241,7 @@ <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"/> @@ -405,22 +405,22 @@ <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> @@ -738,7 +738,7 @@ <message> <location filename="src/mainwindow.cpp" line="566"/> <source>&Adjust Window Size</source> - <translation type="unfinished"/> + <translation>&Ajuste o tamanho da janela</translation> </message> <message> <location filename="src/mainwindow.cpp" line="571"/> @@ -854,7 +854,7 @@ <message> <location filename="src/mainwindow.cpp" line="1158"/> <source>&Loading...</source> - <translation type="unfinished"/> + <translation>&Carregando...</translation> </message> <message> <location filename="src/mainwindow.cpp" line="1264"/> @@ -1059,12 +1059,12 @@ <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"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minitube-2.5.1/locale/uk_UA.ts new/minitube-2.5.2/locale/uk_UA.ts --- old/minitube-2.5.1/locale/uk_UA.ts 2015-11-13 17:48:44.000000000 +0100 +++ new/minitube-2.5.2/locale/uk_UA.ts 2015-12-20 14:27:18.000000000 +0100 @@ -242,7 +242,7 @@ <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"/> @@ -411,17 +411,17 @@ <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> @@ -739,12 +739,12 @@ <message> <location filename="src/mainwindow.cpp" line="566"/> <source>&Adjust Window Size</source> - <translation type="unfinished"/> + <translation>&Змінити розмір вікна</translation> </message> <message> <location filename="src/mainwindow.cpp" line="571"/> <source>&Stop After This Video</source> - <translation>Зу&пинити після цього видиво</translation> + <translation>&Зупинити після цього відео</translation> </message> <message> <location filename="src/mainwindow.cpp" line="578"/> @@ -764,12 +764,12 @@ <message> <location filename="src/mainwindow.cpp" line="597"/> <source>&Related Videos</source> - <translation>Схо&жі видива</translation> + <translation>&Схожі відео</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"/> @@ -804,7 +804,7 @@ <message> <location filename="src/mainwindow.cpp" line="670"/> <source>&Video</source> - <translation>&Видиво</translation> + <translation>&Відео</translation> </message> <message> <location filename="src/mainwindow.cpp" line="686"/> @@ -855,7 +855,7 @@ <message> <location filename="src/mainwindow.cpp" line="1158"/> <source>&Loading...</source> - <translation type="unfinished"/> + <translation>&Завантаження...</translation> </message> <message> <location filename="src/mainwindow.cpp" line="1264"/> @@ -910,7 +910,7 @@ <message> <location filename="src/mainwindow.cpp" line="362"/> <source>Copy the Video Stream &URL</source> - <translation>Копіювати посилання на ви&диво потік</translation> + <translation>Копіювати посилання на ві&део-потік</translation> </message> <message> <location filename="src/mainwindow.cpp" line="369"/> @@ -1060,12 +1060,12 @@ <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"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minitube-2.5.1/minitube.pro new/minitube-2.5.2/minitube.pro --- old/minitube-2.5.1/minitube.pro 2015-11-13 17:48:44.000000000 +0100 +++ new/minitube-2.5.2/minitube.pro 2015-12-20 14:27:18.000000000 +0100 @@ -1,6 +1,6 @@ CONFIG += release TEMPLATE = app -VERSION = 2.5.1 +VERSION = 2.5.2 DEFINES += APP_VERSION="$$VERSION" APP_NAME = Minitube diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minitube-2.5.1/src/video.cpp new/minitube-2.5.2/src/video.cpp --- old/minitube-2.5.1/src/video.cpp 2015-11-13 17:48:44.000000000 +0100 +++ new/minitube-2.5.2/src/video.cpp 2015-12-20 14:27:18.000000000 +0100 @@ -356,7 +356,7 @@ } else { sigFuncName = funcNameRe.cap(1); captureFunction(sigFuncName, js); - // qWarning() << sigFunctions; + // qWarning() << sigFunctions << sigObjects; } #ifdef APP_DASH @@ -404,16 +404,27 @@ } 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::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;
