Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package vido for openSUSE:Factory checked in 
at 2022-03-01 17:03:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vido (Old)
 and      /work/SRC/openSUSE:Factory/.vido.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vido"

Tue Mar  1 17:03:31 2022 rev:5 rq:958121 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/vido/vido.changes        2021-11-05 
22:59:13.520304687 +0100
+++ /work/SRC/openSUSE:Factory/.vido.new.1958/vido.changes      2022-03-01 
17:04:14.364344124 +0100
@@ -1,0 +2,22 @@
+Sun Feb 20 16:05:39 UTC 2022 - Alexei Podvalsky <avvi...@yandex.by>
+
+- Update to 2.3.0:
+  * Update version in data
+  * Update screenshots (#80)
+  * Update version number
+  * App release notes
+  * MainWindow: Correctly set the app title (#79)
+  * Update LINGUAS (#77)
+  * Update LINGUAS (#78)
+  * MainWindow: Add missing Hdy.init() (#76)
+  * Create it.po (#74)
+  * Create it.po (#65)
+  * Update LINGUAS (#64)
+  * l10n: Correctly setup the locales (#73)
+  * Add notification when download done (#72)
+  * Migrate from Travis CI to GitHub Actions (#71)
+  * Less scope in Flatpak, fix folder selection, and fix merging
+    into mkv (#70)
+  * Rounded window corners and flat titlebar (#69)
+
+-------------------------------------------------------------------

Old:
----
  vido-2.1.0.tar.gz

New:
----
  vido-2.3.0.tar.gz

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

Other differences:
------------------
++++++ vido.spec ++++++
--- /var/tmp/diff_new_pack.JmjWAQ/_old  2022-03-01 17:04:14.920344271 +0100
+++ /var/tmp/diff_new_pack.JmjWAQ/_new  2022-03-01 17:04:14.924344273 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           vido
-Version:        2.1.0
+Version:        2.3.0
 Release:        0
 Summary:        Online Video Downloader
 License:        GPL-3.0-or-later
@@ -35,6 +35,7 @@
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(granite) >= 5.2.3
 BuildRequires:  pkgconfig(gtk+-3.0)
+BuildRequires:  pkgconfig(libhandy-1)
 Requires:       youtube-dl
 Recommends:     %{name}-lang
 

++++++ vido-2.1.0.tar.gz -> vido-2.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/.github/workflows/main.yml 
new/vido-2.3.0/.github/workflows/main.yml
--- old/vido-2.1.0/.github/workflows/main.yml   1970-01-01 01:00:00.000000000 
+0100
+++ new/vido-2.3.0/.github/workflows/main.yml   2021-12-12 16:43:30.000000000 
+0100
@@ -0,0 +1,36 @@
+name: CI
+
+on: [pull_request]
+
+jobs:
+  deploy_flatpak:
+    name: Deploy Flatpak
+    runs-on: ubuntu-latest
+
+    container:
+      image: ghcr.io/elementary/flatpak-platform/runtime:6
+      options: --privileged
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Build
+        uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
+        with:
+          bundle: vido.flatpak
+          manifest-path: com.github.bernardodsanderson.vido.yml
+          run-tests: true
+          repository-name: appcenter
+          repository-url: https://flatpak.elementary.io/repo.flatpakrepo
+          cache-key: "flatpak-builder-${{ github.sha }}"
+
+  lint:
+    name: Lint
+    runs-on: ubuntu-latest
+    container:
+      image: valalang/lint
+    steps:
+    - uses: actions/checkout@v2
+    - name: Lint
+      run: io.elementary.vala-lint -d .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/.travis.yml new/vido-2.3.0/.travis.yml
--- old/vido-2.1.0/.travis.yml  2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/.travis.yml  1970-01-01 01:00:00.000000000 +0100
@@ -1,24 +0,0 @@
----
-
-language: node_js
-
-node_js:
-  - 10.17.0
-
-sudo: required
-
-services:
-  - docker
-
-addons:
-  apt:
-    sources:
-      - ubuntu-toolchain-r-test
-    packages:
-      - libstdc++-5-dev
-
-install:
-  - npm i -g @elementaryos/houston
-
-script:
-  - houston ci
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/README.md new/vido-2.3.0/README.md
--- old/vido-2.1.0/README.md    2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/README.md    2021-12-12 16:43:30.000000000 +0100
@@ -15,11 +15,11 @@
 Please make sure you have these dependencies first before building.
 
 ```
-glib-2.0
 granite
 gtk+-3.0
-youtube-dl
+libhandy-1
 ```
+
 To build locally:
 
-`flatpak-builder build  com.github.bernardodsanderson.vido.yml --user 
--install --force-clean`
+`flatpak-builder build com.github.bernardodsanderson.vido.yml --user --install 
--force-clean`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/com.github.bernardodsanderson.vido.yml 
new/vido-2.3.0/com.github.bernardodsanderson.vido.yml
--- old/vido-2.1.0/com.github.bernardodsanderson.vido.yml       2021-10-10 
16:53:19.000000000 +0200
+++ new/vido-2.3.0/com.github.bernardodsanderson.vido.yml       2021-12-12 
16:43:30.000000000 +0100
@@ -10,7 +10,7 @@
   # For downloading videos
   - '--share=network'
   # For saving location
-  - '--filesystem=home'
+  - '--filesystem=xdg-download'
 modules:
   - name: vido
     buildsystem: meson
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/vido-2.1.0/data/com.github.bernardodsanderson.vido.appdata.xml.in 
new/vido-2.3.0/data/com.github.bernardodsanderson.vido.appdata.xml.in
--- old/vido-2.1.0/data/com.github.bernardodsanderson.vido.appdata.xml.in       
2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/data/com.github.bernardodsanderson.vido.appdata.xml.in       
2021-12-12 16:43:30.000000000 +0100
@@ -41,6 +41,12 @@
   </content_rating>
 
   ???<releases>
+    <release version="2.3.0" date="2021-12-12" urgency="low">
+      <description>
+        <p>General app improvements</p>
+        <p>Added Italian translation</p>
+      </description>
+    </release>
     <release version="2.0.0" date="2021-09-26" urgency="high">
       <description>
         <p>Updated for elementary OS 6</p>
Binary files old/vido-2.1.0/data/images/VIDO-normal.png and 
new/vido-2.3.0/data/images/VIDO-normal.png differ
Binary files old/vido-2.1.0/data/images/VIDO-ready.png and 
new/vido-2.3.0/data/images/VIDO-ready.png differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/meson.build new/vido-2.3.0/meson.build
--- old/vido-2.1.0/meson.build  2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/meson.build  2021-12-12 16:43:30.000000000 +0100
@@ -9,6 +9,15 @@
     language: 'c'
 )
 
+config_data = configuration_data()
+config_data.set_quoted('LOCALEDIR', get_option('prefix') / 
get_option('localedir'))
+config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
+config_file = configure_file(
+    input: 'src' / 'Config.vala.in',
+    output: '@BASENAME@',
+    configuration: config_data
+)
+
 asresources = gnome.compile_resources(
   'as-resources', 'data/' + meson.project_name() + '.gresource.xml',
   source_dir: 'data',
@@ -18,16 +27,18 @@
 # Create a new executable, list the files we want to compile, list the 
dependencies we need, and install
 executable(
     meson.project_name(),
+    asresources,
+    config_file,
     'src/Application.vala',
     'src/MainWindow.vala',
-    asresources,
     vala_args: [
         '--pkg=posix'
     ],
     dependencies: [
         dependency('glib-2.0'),
         dependency('gtk+-3.0'),
-        dependency('granite', version: '>= 0.5')
+        dependency('granite', version: '>= 6.0.0'),
+        dependency('libhandy-1')
     ],
     install: true
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/po/LINGUAS new/vido-2.3.0/po/LINGUAS
--- old/vido-2.1.0/po/LINGUAS   2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/po/LINGUAS   2021-12-12 16:43:30.000000000 +0100
@@ -1,4 +1,5 @@
 fr
+it
 nl
 lt
 ru
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/po/extra/LINGUAS 
new/vido-2.3.0/po/extra/LINGUAS
--- old/vido-2.1.0/po/extra/LINGUAS     2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/po/extra/LINGUAS     2021-12-12 16:43:30.000000000 +0100
@@ -1,4 +1,5 @@
 fr
+it
 nl
 lt
 ru
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/po/extra/it.po 
new/vido-2.3.0/po/extra/it.po
--- old/vido-2.1.0/po/extra/it.po       1970-01-01 01:00:00.000000000 +0100
+++ new/vido-2.3.0/po/extra/it.po       2021-12-12 16:43:30.000000000 +0100
@@ -0,0 +1,46 @@
+# ITALIAN TRANSLATION FOR VIDO.
+# Copyright (C) YEAR THE extra'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the 
com.github.bernardodsanderson.vido package.
+# ALBANO BATTISTELLA <albano_battiste...@hotmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: extra\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-02-03 14:38+0900\n"
+"PO-Revision-Date: 2021-10-09 14:48+0100\n"
+"Last-Translator: Albano Battistella <albano_battiste...@hotmail.com>\n"
+"Language-Team: Italian <l...@li.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: data/com.github.bernardodsanderson.vido.appdata.xml.in:7
+#: data/com.github.bernardodsanderson.vido.desktop.in:3
+msgid "VIDO"
+msgstr "VIDO"
+
+#: data/com.github.bernardodsanderson.vido.appdata.xml.in:8
+msgid "Online Video Downloader"
+msgstr "Downloader di video online"
+
+#: data/com.github.bernardodsanderson.vido.appdata.xml.in:10
+msgid ""
+"Download online videos from various sources including archive.org and much "
+"more!"
+msgstr ""
+"Scarica video online da varie fonti tra cui archive.org e molto "
+"di pi??!"
+
+#: data/com.github.bernardodsanderson.vido.appdata.xml.in:15
+msgid "Fix audio download issues"
+msgstr "Risolto i problemi di download dell'audio"
+
+#: data/com.github.bernardodsanderson.vido.appdata.xml.in:29
+msgid "Normal Mode"
+msgstr "Modalit?? Normale"
+
+#: data/com.github.bernardodsanderson.vido.appdata.xml.in:33
+msgid "Ready to Download"
+msgstr "Pronto per il download"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/po/it.po new/vido-2.3.0/po/it.po
--- old/vido-2.1.0/po/it.po     1970-01-01 01:00:00.000000000 +0100
+++ new/vido-2.3.0/po/it.po     2021-12-12 16:43:30.000000000 +0100
@@ -0,0 +1,82 @@
+# ITALIAN TRANSLATION.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the 
com.github.bernardodsanderson.vido package.
+# ALBANO BATTISTELLA <albano_battiste...@hotmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: com.github.bernardodsanderson.vido\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-03-17 19:34+0100\n"
+"PO-Revision-Date: 2021-11-24 19:23+0100\n"
+"Last-Translator: Albano Battistella <albano_battiste...@hotmail.com>\n"
+"Language-Team: Italian <l...@li.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Global Vars
+#: src/vido.vala:11 src/vido.vala:73
+msgid "Download"
+msgstr "Download"
+
+#: src/vido.vala:17
+msgid "Select Folder to Save"
+msgstr "Seleziona la cartella da salvare"
+
+#. Clear the video info (or the error message)
+#: src/vido.vala:19 src/vido.vala:70 src/vido.vala:174
+msgid "Get Video Info"
+msgstr "Ottieni informazioni sul video"
+
+#: src/vido.vala:20
+msgid "Audio Only"
+msgstr "Solo audio"
+
+#: src/vido.vala:21
+msgid "Add Subtitles"
+msgstr "Aggiungi sottotitoli"
+
+#. Header
+#: src/vido.vala:37
+msgid "VIDO - Video Downloader"
+msgstr "VIDO - Video Downloader"
+
+#. URL input
+#: src/vido.vala:52
+msgid "Enter URL???"
+msgstr "Inserisci l'URL???"
+
+#: src/vido.vala:127
+msgid "Loading info???"
+msgstr "Caricamento informazioni???"
+
+#: src/vido.vala:167
+msgid "Unable to fetch the video info"
+msgstr "Impossibile recuperare le informazioni sul video"
+
+#: src/vido.vala:167
+msgid "The following error message may be helpful:"
+msgstr "Il seguente messaggio di errore pu?? essere utile:"
+
+#: src/vido.vala:192
+msgid "Downloading???"
+msgstr "Download in corso???"
+
+#. Triggered when the child indicated by child_pid exits
+#: src/vido.vala:221
+msgid "Finished!"
+msgstr "Finito!"
+
+#: src/vido.vala:246
+msgid "Open Folder"
+msgstr "Apri Cartella"
+
+#: src/vido.vala:249
+msgid "_Cancel"
+msgstr "_Cancella"
+
+#: src/vido.vala:250
+msgid "_Open"
+msgstr "_Apri"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/src/Application.vala 
new/vido-2.3.0/src/Application.vala
--- old/vido-2.1.0/src/Application.vala 2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/src/Application.vala 2021-12-12 16:43:30.000000000 +0100
@@ -26,6 +26,13 @@
         );
     }
 
+    construct {
+        Intl.setlocale (LocaleCategory.ALL, "");
+        Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+        Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+        Intl.textdomain (GETTEXT_PACKAGE);
+    }
+
     static construct {
         settings = new Settings ("com.github.bernardodsanderson.vido");
     }
@@ -36,6 +43,17 @@
             return;
         }
 
+        var open_action = new SimpleAction ("open", null);
+        open_action.activate.connect (() => {
+            try {
+                File destination = File.new_for_path 
(Application.settings.get_string ("destination"));
+                AppInfo.launch_default_for_uri (destination.get_uri (), null);
+            } catch (Error e) {
+                warning (e.message);
+            }
+        });
+        add_action (open_action);
+
         int window_x, window_y;
         settings.get ("window-position", "(ii)", out window_x, out window_y);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/src/Config.vala.in 
new/vido-2.3.0/src/Config.vala.in
--- old/vido-2.1.0/src/Config.vala.in   1970-01-01 01:00:00.000000000 +0100
+++ new/vido-2.3.0/src/Config.vala.in   2021-12-12 16:43:30.000000000 +0100
@@ -0,0 +1,2 @@
+public const string GETTEXT_PACKAGE = @GETTEXT_PACKAGE@;
+public const string LOCALEDIR = @LOCALEDIR@;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vido-2.1.0/src/MainWindow.vala 
new/vido-2.3.0/src/MainWindow.vala
--- old/vido-2.1.0/src/MainWindow.vala  2021-10-10 16:53:19.000000000 +0200
+++ new/vido-2.3.0/src/MainWindow.vala  2021-12-12 16:43:30.000000000 +0100
@@ -15,7 +15,7 @@
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
 
-public class MainWindow : Gtk.ApplicationWindow {
+public class MainWindow : Hdy.Window {
     private string folder_location;
     private string video_info;
     private uint configure_id;
@@ -23,12 +23,14 @@
     public MainWindow (Gtk.Application app) {
         Object (
             application: app,
-            border_width: 15,
-            resizable: false
+            resizable: false,
+            title: "VIDO"
         );
     }
 
     construct {
+        Hdy.init ();
+
         // Add CSS file
         var css_provider = new Gtk.CssProvider ();
         css_provider.load_from_resource 
("/com/github/bernardodsanderson/vido/style.css");
@@ -36,11 +38,13 @@
                                                     css_provider, 
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
 
         // Header
-        var header = new Gtk.HeaderBar ();
-        header.show_close_button = true;
-        header.has_subtitle = false;
-        header.title = _("VIDO - Video Downloader");
-        set_titlebar (header);
+        var header = new Hdy.HeaderBar () {
+            show_close_button = true,
+            has_subtitle = false,
+            title = "VIDO"
+        };
+        header.get_style_context ().add_class 
(Granite.STYLE_CLASS_DEFAULT_DECORATION);
+        header.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
 
         // URL input
         var url_input = new Gtk.Entry ();
@@ -62,7 +66,7 @@
         location_label.halign = Gtk.Align.END;
         var location_button = new Gtk.FileChooserButton (_("Select Folder to 
Save"), Gtk.FileChooserAction.SELECT_FOLDER);
         location_button.halign = Gtk.Align.START;
-        location_button.set_filename (get_destination ());
+        location_button.set_current_folder (get_destination ());
 
         // Audio Only
         var audio_only = new Gtk.CheckButton.with_label (_("Audio Only"));
@@ -89,6 +93,7 @@
         var grid = new Gtk.Grid ();
         grid.row_spacing = 6;
         grid.column_spacing = 6;
+        grid.border_width = 12;
         grid.attach (url_input, 0, 0, 7, 1);
         grid.attach (location_label, 0, 1, 1, 1);
         grid.attach (location_button, 1, 1, 1, 1);
@@ -97,7 +102,16 @@
         grid.attach (info_button, 0, 2, 7, 1);
         grid.attach (video_label, 0, 3, 7, 1);
         grid.attach (download_button, 0, 4, 7, 1);
-        add (grid);
+
+        var main_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
+        main_box.add (header);
+        main_box.add (grid);
+        add (main_box);
+
+        var notification = new Notification (_("Download Completed!"));
+        notification.set_body (_("Click here to see in the destination 
folder"));
+        notification.set_icon (new ThemedIcon ("process-completed"));
+        notification.set_default_action ("app.open");
 
         url_input.changed.connect (() => {
             if (url_input.text != "") {
@@ -125,12 +139,11 @@
         });
 
         location_button.file_set.connect (() => {
-            Application.settings.set_string ("destination", 
location_button.get_filename ());
+            folder_location = location_button.get_filename ();
+            Application.settings.set_string ("destination", folder_location);
 
-            if (folder_location != "") {
-                if (url_input.text != "") {
-                    download_button.sensitive = true;
-                }
+            if (url_input.text != "") {
+                download_button.sensitive = true;
             }
         });
 
@@ -218,11 +231,7 @@
         download_button.clicked.connect (() => {
             download_button.label = _("Downloading???");
             download_button.sensitive = false;
-            // var notification = new Notification (_("Hello World"));
-            // notification.set_body (_("This is my first notification!"));
-            // this.send_notification ("notify.app", notification);
-            // var image = new Gtk.Image.from_icon_name ("dialog-warning", 
Gtk.IconSize.DIALOG);
-            // notification.set_icon (image.gicon);
+
             string[] spawn_args;
             if (audio_only.active) { // --extract-audio
                 spawn_args = { "youtube-dl", "--no-warnings", 
"--extract-audio", url_input.text };
@@ -268,6 +277,7 @@
                     if (status == 0) {
                         download_button.label = _("Finished!");
                         download_button.sensitive = true;
+                        application.send_notification 
("com.github.bernardodsanderson.vido", notification);
                     } else {
                         download_button.label = _("Download");
 
@@ -295,11 +305,17 @@
 
     private string get_destination () {
         string destination = Application.settings.get_string ("destination");
+        if (destination == "") {
+            destination = Environment.get_user_special_dir 
(UserDirectory.DOWNLOAD);
+            Application.settings.set_string ("destination", destination);
+        }
 
         if (destination != null) {
             DirUtils.create_with_parents (destination, 0775);
         }
 
+        folder_location = destination;
+
         return destination;
     }
 

Reply via email to