From 2a58add0fb05714f7cad3c717f52d20fa553e03d Mon Sep 17 00:00:00 2001 From: Alain M Date: Wed, 11 Dec 2019 00:34:35 -0500 Subject: [PATCH] Release 0.2.0 --- README.md | 18 +++++++++++------- data/com.github.alainm23.byte.appdata.xml.in | 13 +++++++++++++ debian/rules | 0 src/Services/Scan.vala | 12 ++++++++---- src/Services/TagManager.vala | 7 ++++--- 5 files changed, 36 insertions(+), 14 deletions(-) mode change 100755 => 100644 debian/rules diff --git a/README.md b/README.md index eecab0c..bd7343f 100644 --- a/README.md +++ b/README.md @@ -37,14 +37,18 @@ You'll need the following dependencies: ## Building -``` -meson build && cd build -meson configure -Dprefix=/usr -sudo ninja install -com.github.alainm23.byte -``` +Run `meson build` to configure the build environment. Change to the build directory and run `ninja` to build + + meson build --prefix=/usr + cd build + ninja + +To install, use `ninja install`, then execute with `com.github.alainm23.byte` + + sudo ninja install + com.github.alainm23.byte ## Support -If you like Byte and you want to support its development,consider supporting via [Patreon](https://www.patreon.com/alainm23) +If you like Byte and you want to support its development,consider supporting via [Patreon](https://www.patreon.com/alainm23) or [PayPal](https://www.paypal.me/alainm23) Made with ๐Ÿ’— in Perรบ diff --git a/data/com.github.alainm23.byte.appdata.xml.in b/data/com.github.alainm23.byte.appdata.xml.in index 1e54134..8067efd 100644 --- a/data/com.github.alainm23.byte.appdata.xml.in +++ b/data/com.github.alainm23.byte.appdata.xml.in @@ -23,6 +23,19 @@ com.github.alainm23.byte โ€‹ + + +

This update brings some new features and bug fixes:

+
    +
  • Byte now starts faster ๐Ÿš€๏ธ.
  • +
  • An indicator was added that records all the playback radio station history.
  • +
  • Fixed a bug by not showing the default covers (Flathub).
  • +
  • Fixed a bug that blocks the application at startup.
  • +
  • Update French translation @NathanBnm
  • +
  • Update Spanish translation @alainm23
  • +
+
+

This update brings some new features and bug fixes:

diff --git a/debian/rules b/debian/rules old mode 100755 new mode 100644 diff --git a/src/Services/Scan.vala b/src/Services/Scan.vala index b5ef287..27b7109 100644 --- a/src/Services/Scan.vala +++ b/src/Services/Scan.vala @@ -71,12 +71,16 @@ public class Services.Scan : GLib.Object { } public void found_music_file (string uri) { - //print ("URI: %s\n".printf (uri)); + print ("URI: %s\n".printf (uri)); new Thread ("found_local_music_file", () => { - if (Byte.database.music_file_exists (uri) == false && Byte.database.music_blacklist_exists (uri) == false) { - Byte.tg_manager.add_discover_uri (uri); - } + Idle.add (() => { + if (Byte.database.music_file_exists (uri) == false && Byte.database.music_blacklist_exists (uri) == false) { + Byte.tg_manager.add_discover_uri (uri); + } + + return false; + }); return null; }); diff --git a/src/Services/TagManager.vala b/src/Services/TagManager.vala index fcae3ff..c552306 100644 --- a/src/Services/TagManager.vala +++ b/src/Services/TagManager.vala @@ -14,7 +14,7 @@ public class Services.TagManager : GLib.Object { } private void discovered (Gst.PbUtils.DiscovererInfo info, Error? err) { - new Thread (null, () => { + Idle.add (() => { string uri = info.get_uri (); if (info.get_result () != Gst.PbUtils.DiscovererResult.OK) { @@ -79,7 +79,7 @@ public class Services.TagManager : GLib.Object { if (tags.get_double (Gst.Tags.BEATS_PER_MINUTE, out dou)) { track.bpm = (int) dou.clamp (0, dou); } - + // ALBUM OBJECT var album = new Objects.Album (); if (tags.get_string (Gst.Tags.ALBUM, out o)) { @@ -135,7 +135,8 @@ public class Services.TagManager : GLib.Object { } info.dispose (); - return null; + + return false; }); }