Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package minitube for openSUSE:Factory 
checked in at 2021-04-08 21:32:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/minitube (Old)
 and      /work/SRC/openSUSE:Factory/.minitube.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "minitube"

Thu Apr  8 21:32:28 2021 rev:25 rq:883763 version:3.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/minitube/minitube.changes        2021-03-02 
12:45:32.996360354 +0100
+++ /work/SRC/openSUSE:Factory/.minitube.new.2401/minitube.changes      
2021-04-08 21:32:40.431840598 +0200
@@ -1,0 +2,7 @@
+Sat Apr  3 04:34:29 UTC 2021 - Carsten Ziepke <kiel...@gmail.com>
+
+- Update to version 3.8.2:
+  - Updated translations
+- Update Build Requires - QT >= 5.12 is needed
+
+-------------------------------------------------------------------

Old:
----
  minitube-3.8.1.tar.xz

New:
----
  minitube-3.8.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ minitube.spec ++++++
--- /var/tmp/diff_new_pack.fjmauy/_old  2021-04-08 21:32:41.127841362 +0200
+++ /var/tmp/diff_new_pack.fjmauy/_new  2021-04-08 21:32:41.127841362 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           minitube
-Version:        3.8.1
+Version:        3.8.2
 Release:        0
 Summary:        Native YouTube Client
 License:        GPL-3.0-or-later
@@ -34,7 +34,7 @@
 BuildRequires:  libqt5-qtdeclarative-devel
 BuildRequires:  pkgconfig
 BuildRequires:  update-desktop-files
-BuildRequires:  pkgconfig(Qt5Core) >= 5.10
+BuildRequires:  pkgconfig(Qt5Core) >= 5.12
 BuildRequires:  pkgconfig(Qt5DBus)
 BuildRequires:  pkgconfig(Qt5Network)
 BuildRequires:  pkgconfig(Qt5Script)

++++++ _service ++++++
--- /var/tmp/diff_new_pack.fjmauy/_old  2021-04-08 21:32:41.155841393 +0200
+++ /var/tmp/diff_new_pack.fjmauy/_new  2021-04-08 21:32:41.155841393 +0200
@@ -4,7 +4,7 @@
     <param name="url">https://github.com/flaviotordini/minitube.git</param>
     <param name="filename">minitube</param>
     <param name="versionformat">@PARENT_TAG@</param>
-    <param name="revision">3.8.1</param>
+    <param name="revision">3.8.2</param>
   </service>
   <service mode="disabled" name="recompress">
     <param name="file">*.tar</param>

++++++ minitube-3.8.1.tar.xz -> minitube-3.8.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/lib/js/js.cpp 
new/minitube-3.8.2/lib/js/js.cpp
--- old/minitube-3.8.1/lib/js/js.cpp    2021-02-26 10:15:41.000000000 +0100
+++ new/minitube-3.8.2/lib/js/js.cpp    2021-04-02 01:43:59.000000000 +0200
@@ -55,6 +55,10 @@
         return *result;
     }
 
+    auto nam = getEngine().networkAccessManager();
+    nam->clearAccessCache();
+    nam->setCookieJar(new QNetworkCookieJar());
+
     auto function = engine->evaluate(name);
     if (!function.isCallable()) {
         qWarning() << function.toString() << " is not callable";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/locale/fi.ts 
new/minitube-3.8.2/locale/fi.ts
--- old/minitube-3.8.1/locale/fi.ts     2021-02-26 10:15:41.000000000 +0100
+++ new/minitube-3.8.2/locale/fi.ts     2021-04-02 01:43:59.000000000 +0200
@@ -223,7 +223,7 @@
     </message>
     <message numerus="yes">
         <source>%n year(s) ago</source>
-        <translation 
type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+        <translation><numerusform>%n vuotta 
sitten</numerusform><numerusform>%n vuotta sitten</numerusform></translation>
     </message>
 </context>
 <context>
@@ -1038,19 +1038,19 @@
     </message>
     <message>
         <source>This year</source>
-        <translation type="unfinished"/>
+        <translation>T??n?? vuonna</translation>
     </message>
     <message>
         <source>HD</source>
-        <translation type="unfinished"/>
+        <translation>HD</translation>
     </message>
     <message>
         <source>4K</source>
-        <translation type="unfinished"/>
+        <translation>4K</translation>
     </message>
     <message>
         <source>HDR</source>
-        <translation type="unfinished"/>
+        <translation>HDR</translation>
     </message>
 </context>
 <context>
@@ -1111,7 +1111,7 @@
     </message>
     <message>
         <source>An update is ready to be installed. Quit and install 
update.</source>
-        <translation type="unfinished"/>
+        <translation>P??ivitys on valmiina asennettavaksi. Poistu 
sovelluksesta asentaaksesi p??ivityksen.</translation>
     </message>
 </context>
 <context>
@@ -1167,23 +1167,23 @@
     </message>
     <message>
         <source>Trending</source>
-        <translation type="unfinished"/>
+        <translation>Trendaavat</translation>
     </message>
     <message>
         <source>Music</source>
-        <translation type="unfinished"/>
+        <translation>Musiikki</translation>
     </message>
     <message>
         <source>News</source>
-        <translation type="unfinished"/>
+        <translation>Uutiset</translation>
     </message>
     <message>
         <source>Movies</source>
-        <translation type="unfinished"/>
+        <translation>Elokuvat</translation>
     </message>
     <message>
         <source>Gaming</source>
-        <translation type="unfinished"/>
+        <translation>Pelaaminen</translation>
     </message>
 </context>
 <context>
@@ -1201,31 +1201,31 @@
     <name>Updater</name>
     <message>
         <source>Check for Updates...</source>
-        <translation type="unfinished"/>
+        <translation>Tarkista onko p??ivityksi?? saatavilla...</translation>
     </message>
     <message>
         <source>Version %1 is available...</source>
-        <translation type="unfinished"/>
+        <translation>Versio %1 on saatavilla...</translation>
     </message>
     <message>
         <source>Downloading version %1...</source>
-        <translation type="unfinished"/>
+        <translation>Ladataan versiota %1...</translation>
     </message>
     <message>
         <source>Restart to Update</source>
-        <translation type="unfinished"/>
+        <translation>Uudelleenk??ynnist?? p??ivitt????ksesi</translation>
     </message>
     <message>
         <source>Version %1 download failed</source>
-        <translation type="unfinished"/>
+        <translation>Version %1 lataaminen ep??onnistui</translation>
     </message>
     <message>
         <source>Check for Updates</source>
-        <translation type="unfinished"/>
+        <translation>Tarkista onko p??ivityksi?? saatavilla</translation>
     </message>
     <message>
         <source>Download Update</source>
-        <translation type="unfinished"/>
+        <translation>Lataa p??ivitys</translation>
     </message>
     <message>
         <source>Downloading update...</source>
@@ -1233,19 +1233,19 @@
     </message>
     <message>
         <source>Retry Update Download</source>
-        <translation type="unfinished"/>
+        <translation>Yrit?? ladata p??ivityst?? uudelleen</translation>
     </message>
     <message>
         <source>You have the latest version.</source>
-        <translation type="unfinished"/>
+        <translation>K??yt??ss?? on jo viimeisin versio.</translation>
     </message>
     <message>
         <source>Version %1 is available.</source>
-        <translation type="unfinished"/>
+        <translation>Versio %1 on saatavissa.</translation>
     </message>
     <message>
         <source>An update has been downloaded and is ready to be 
installed.</source>
-        <translation type="unfinished"/>
+        <translation>P??ivitys ladattiin ja on nyt valmis 
asennettavaksi.</translation>
     </message>
 </context>
 <context>
@@ -1461,18 +1461,18 @@
     <name>updater::DefaultUpdater</name>
     <message>
         <source>There are currently no updates available.</source>
-        <translation type="unfinished"/>
+        <translation>P??ivityksi?? ei ole t??ll?? hetkell?? 
saatavilla.</translation>
     </message>
 </context>
 <context>
     <name>updater::Dialog</name>
     <message>
         <source>You already have the latest version</source>
-        <translation type="unfinished"/>
+        <translation>K??yt??ss?? on jo viimeisin versio</translation>
     </message>
     <message>
         <source>Downloading %1 %2...</source>
-        <translation type="unfinished"/>
+        <translation>Ladataan %1 %2...</translation>
     </message>
     <message>
         <source>A new version of %1 is available!</source>
@@ -1492,7 +1492,7 @@
     </message>
     <message>
         <source>Download Update</source>
-        <translation type="unfinished"/>
+        <translation>Lataa p??ivitys</translation>
     </message>
 </context>
 </TS>
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/locale/ja_JP.ts 
new/minitube-3.8.2/locale/ja_JP.ts
--- old/minitube-3.8.1/locale/ja_JP.ts  2021-02-26 10:15:41.000000000 +0100
+++ new/minitube-3.8.2/locale/ja_JP.ts  2021-04-02 01:43:59.000000000 +0200
@@ -223,7 +223,7 @@
     </message>
     <message numerus="yes">
         <source>%n year(s) ago</source>
-        <translation 
type="unfinished"><numerusform></numerusform></translation>
+        <translation><numerusform>%n??????</numerusform></translation>
     </message>
 </context>
 <context>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/locale/ro.ts 
new/minitube-3.8.2/locale/ro.ts
--- old/minitube-3.8.1/locale/ro.ts     2021-02-26 10:15:41.000000000 +0100
+++ new/minitube-3.8.2/locale/ro.ts     2021-04-02 01:43:59.000000000 +0200
@@ -27,11 +27,11 @@
     </message>
     <message>
         <source>Powered by %1</source>
-        <translation type="unfinished"/>
+        <translation>Alimentat de %1</translation>
     </message>
     <message>
         <source>Open-source software</source>
-        <translation type="unfinished"/>
+        <translation>Software Surs??-Deschis??</translation>
     </message>
     <message>
         <source>Icon designed by %1.</source>
@@ -107,7 +107,7 @@
     </message>
     <message numerus="yes">
         <source>You have %n new video(s)</source>
-        <translation 
type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
+        <translation><numerusform>Ave??i un videoclip 
nou</numerusform><numerusform>Ave??i %n videoclipuri 
noi</numerusform><numerusform>Ave??i %n de videoclipuri 
noi</numerusform></translation>
     </message>
 </context>
 <context>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/minitube.pro 
new/minitube-3.8.2/minitube.pro
--- old/minitube-3.8.1/minitube.pro     2021-02-26 10:15:41.000000000 +0100
+++ new/minitube-3.8.2/minitube.pro     2021-04-02 01:43:59.000000000 +0200
@@ -1,7 +1,7 @@
 CONFIG += c++17 exceptions_off rtti_off object_parallel_to_source
 
 TEMPLATE = app
-VERSION = 3.8.1
+VERSION = 3.8.2
 DEFINES += APP_VERSION="$$VERSION"
 
 APP_NAME = Minitube
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/src/jsfunctions.cpp 
new/minitube-3.8.2/src/jsfunctions.cpp
--- old/minitube-3.8.1/src/jsfunctions.cpp      2021-02-26 10:15:41.000000000 
+0100
+++ new/minitube-3.8.2/src/jsfunctions.cpp      2021-04-02 01:43:59.000000000 
+0200
@@ -57,7 +57,10 @@
     if (engine) delete engine;
     engine = new QJSEngine(this);
     engine->evaluate(js);
-    emit ready();
+    QTimer::singleShot(0, this, [this] {
+        qDebug() << "Emitting ready";
+        emit ready();
+    });
 }
 
 QString JsFunctions::jsFilename() {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/src/mainwindow.cpp 
new/minitube-3.8.2/src/mainwindow.cpp
--- old/minitube-3.8.1/src/mainwindow.cpp       2021-02-26 10:15:41.000000000 
+0100
+++ new/minitube-3.8.2/src/mainwindow.cpp       2021-04-02 01:43:59.000000000 
+0200
@@ -171,13 +171,16 @@
     } else if (VideoAPI::impl() == VideoAPI::YT3) {
         YT3::instance().initApiKeys();
     } else if (VideoAPI::impl() == VideoAPI::JS) {
-        JS::instance().getNamFactory().setRequestHeaders(
-                {{"User-Agent", HttpUtils::stealthUserAgent()}});
         JS::instance().initialize(QUrl(QLatin1String(Constants::WEBSITE) + 
"-ws/bundle2.js"));
-        /// 
JS::instance().initialize(QUrl("http://localhost:8000/bundle-test.js";));
+        // 
JS::instance().initialize(QUrl("http://localhost:8000/bundle-test.js";));
         Invidious::instance().initServers();
     }
 
+    connect(JsFunctions::instance(), &JsFunctions::ready, this, [] {
+        auto ua = JsFunctions::instance()->string("userAgent()").toUtf8();
+        JS::instance().getNamFactory().setRequestHeaders({{"User-Agent", ua}});
+    });
+
     QTimer::singleShot(100, this, &MainWindow::lazyInit);
 }
 
@@ -226,8 +229,6 @@
     fullscreenTimer->setSingleShot(true);
     connect(fullscreenTimer, SIGNAL(timeout()), SLOT(hideFullscreenUI()));
 
-    JsFunctions::instance();
-
     // Hack to give focus to searchlineedit
     View *view = qobject_cast<View *>(views->currentWidget());
     if (view == homeView) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/src/yt/ytjs/ytjssearch.cpp 
new/minitube-3.8.2/src/yt/ytjs/ytjssearch.cpp
--- old/minitube-3.8.1/src/yt/ytjs/ytjssearch.cpp       2021-02-26 
10:15:41.000000000 +0100
+++ new/minitube-3.8.2/src/yt/ytjs/ytjssearch.cpp       2021-04-02 
01:43:59.000000000 +0200
@@ -108,7 +108,7 @@
         jsMapSet.callWithInstance(filterMap, {name, value});
     };
 
-    addFilter("Type", "Video");
+    // addFilter("Type", "Video");
 
     switch (searchParams->sortBy()) {
     case SearchParams::SortByNewest:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/minitube-3.8.1/src/yt/ytjs/ytjssinglevideosource.cpp 
new/minitube-3.8.2/src/yt/ytjs/ytjssinglevideosource.cpp
--- old/minitube-3.8.1/src/yt/ytjs/ytjssinglevideosource.cpp    2021-02-26 
10:15:41.000000000 +0100
+++ new/minitube-3.8.2/src/yt/ytjs/ytjssinglevideosource.cpp    2021-04-02 
01:43:59.000000000 +0200
@@ -57,7 +57,7 @@
                     video->setViewCount(views);
 
                     int duration = i["length_seconds"].toInt();
-                    video->setViewCount(duration);
+                    video->setDuration(duration);
 
                     QString channelId = i["ucid"].toString();
                     video->setChannelId(channelId);

Reply via email to