diff options
author | Aylur <[email protected]> | 2024-07-18 12:18:16 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-07-18 12:18:16 +0200 |
commit | 0bfd3a2cb4adde5c3dca8c919eca264392546f5d (patch) | |
tree | 7ead3810132421760b1ae2a26940febc8777a063 | |
parent | 2e6764950aaf3df7ea1f69d470f2b9ff9f8dd1c2 (diff) |
move c header back to astal-mpris.h
-rw-r--r-- | src/meson.build | 2 | ||||
-rw-r--r-- | src/player.vala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/meson.build b/src/meson.build index 94f6dd3..9b3c51f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -33,7 +33,7 @@ if get_option('lib') meson.project_name(), sources, dependencies: deps, - vala_header: meson.project_name().replace('astal-', '') + '.h', + vala_header: meson.project_name() + '.h', vala_vapi: meson.project_name() + '-' + api_version + '.vapi', vala_gir: gir, version: meson.project_version(), diff --git a/src/player.vala b/src/player.vala index 297fb6e..72d2116 100644 --- a/src/player.vala +++ b/src/player.vala @@ -265,7 +265,7 @@ public class Player : Object { } private async void cache_cover() { - if (art_url == null) + if (art_url == null || art_url == "") return; var file = File.new_for_uri(art_url); @@ -295,7 +295,7 @@ public class Player : Object { file.copy_async.end(res); cover_art = path; } catch (Error err) { - critical("Failed to cache cover art %s", err.message); + critical("Failed to cache cover art with url \"%s\": %s", art_url, err.message); } } ); |