From 9c689d73d6beada7be6be93825012519d222fd33 Mon Sep 17 00:00:00 2001 From: jude Date: Sat, 9 Sep 2023 20:03:01 +0100 Subject: [PATCH] Track media server songs list --- .idea/dataSources.xml | 12 +++ .idea/modules.xml | 8 ++ .idea/navidrome-playlists.iml | 13 ++++ .idea/vcs.xml | 6 ++ .idea/workspace.xml | 61 +++++++++++++--- Cargo.lock | 73 +++++++++++++++++++ Cargo.toml | 1 + navidrome/src/client/builder.rs | 59 ++++++++++++++- navidrome/src/client/library.rs | 22 ++++++ navidrome/src/client/mod.rs | 7 +- navidrome/src/client/playlists.rs | 22 +++++- navidrome/src/models/navidrome.rs | 22 ++++-- src/daemon/mod.rs | 5 ++ src/{daemon.rs => daemon/update_playlists.rs} | 2 + src/daemon/update_tracks.rs | 33 +++++++++ src/main.rs | 40 ++++++++-- 16 files changed, 361 insertions(+), 25 deletions(-) create mode 100644 .idea/dataSources.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/navidrome-playlists.iml create mode 100644 .idea/vcs.xml create mode 100644 navidrome/src/client/library.rs create mode 100644 src/daemon/mod.rs rename src/{daemon.rs => daemon/update_playlists.rs} (95%) create mode 100644 src/daemon/update_tracks.rs diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..187f63f --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://localhost:5432/postgres + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ecd7bc0 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/navidrome-playlists.iml b/.idea/navidrome-playlists.iml new file mode 100644 index 0000000..008063f --- /dev/null +++ b/.idea/navidrome-playlists.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 41bb99f..12f22b9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -11,18 +11,20 @@ - - - - + + + - - + + + + + + + + + + + + + + - + + +