Skip to content

Commit

Permalink
Naming clean-up and flathub build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
technosf committed Jan 4, 2025
1 parent 4c9fb42 commit 1bcadee
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ tuner.code-workspace
labelexpand.ods
tuner-starred.m3u8
uncrustify.cfg
repo/*
4 changes: 2 additions & 2 deletions data/io.github.louis77.tuner.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
<project_license>GPL-3.0+</project_license>
<name>Tuner</name>
<developer_name>Louis Brauer</developer_name>
<developer_name>technosf</developer_name>
<launchable type="desktop-id">io.github.louis77.tuner.desktop</launchable>
<branding>
<color type="primary" scheme_preference="light">#fafafa</color>
<color type="primary" scheme_preference="dark">#abacae</color>
</branding>
<summary>Internet Radio</summary>
<description>
<p><b>Make finding and listening to internet radio stations fun again!</b></p>
<p>Make finding and listening to internet radio stations fun again!</p>
<p>Instead of showing all the stations you already know,
Tuner presents you a new selection of stations from all over the world
every time you hit the Shuffle button.</p>
Expand Down Expand Up @@ -61,7 +62,6 @@
</screenshot>
</screenshots>

<update_contact>louis_AT_brauer.family</update_contact>
<update_contact>tuner.10.technomation_AT_xoxy.net</update_contact>
<url type="homepage">https://github.com/louis77/tuner</url>
<url type="bugtracker">http://github.com/louis77/tuner/issues</url>
Expand Down
Binary file modified docs/Tuner_2.0_context.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_discover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_jukebox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_pref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_saved.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/Tuner_2.0_starred.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions io.github.louis77.tuner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.vala

base: io.elementary.BaseApp
base-version: 'circe-24.08'
#base: io.elementary.BaseApp
#base-version: 'circe-24.08'

command: io.github.louis77.tuner

Expand Down Expand Up @@ -55,6 +55,7 @@ modules:
buildsystem: simple
build-commands:
- install -d /app/vala

- name: libsoup
buildsystem: meson
builddir: true
Expand Down
19 changes: 10 additions & 9 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,16 @@ namespace Tuner {
var _favorites_file = File.new_build_filename (data_dir, "favorites.json"); // v1 file
var _starred_file = File.new_build_filename (data_dir, Application.STARRED); // v2 file

try {
_favorites_file.open_readwrite().close (); // Try to open, if succeeds it exists, if not err - no migration
_starred_file.create(NONE); // Try to create, if fails starred already exists, if not ok to migrate
_favorites_file.copy (_starred_file, FileCopyFlags.NONE); // Copy
warning(@"Migrated v1 Favorites to v2 Starred");
}
catch (Error e) {
// Peconditions not met
}
/* Migration not possible with renamed app */
// try {
// _favorites_file.open_readwrite().close (); // Try to open, if succeeds it exists, if not err - no migration
// _starred_file.create(NONE); // Try to create, if fails starred already exists, if not ok to migrate
// _favorites_file.copy (_starred_file, FileCopyFlags.NONE); // Copy
// warning(@"Migrated v1 Favorites to v2 Starred");
// }
// catch (Error e) {
// // Peconditions not met
// }

/*
Create the cancellable.
Expand Down
5 changes: 4 additions & 1 deletion src/Controllers/PlayerController.vala
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ public class Tuner.PlayerController : GLib.Object
break;
case GLib.Type.UINT:
list.get_uint(tag, out u);
_metadata_values.set ( tag, @"$(u/1000)K");
if ( u > 1000)
_metadata_values.set ( tag, @"$(u/1000)K");
else
_metadata_values.set ( tag, u.to_string ());
break;
case GLib.Type.BOOLEAN:
list.get_boolean (tag, out b);
Expand Down

0 comments on commit 1bcadee

Please sign in to comment.