YaMusicDownload : Update notification.

This commit is contained in:
Dmitry Voronin 2024-06-28 01:44:33 +03:00
parent 4b281d4a4d
commit 26771dfc46
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -14,7 +14,13 @@ in {
cd ${storage}
${package}/bin/yandex-music-downloader --browser "firefox" --hq --skip-broken --add-lyrics --embed-cover --skip-existing --stick-to-artist --only-music --path-pattern "${pattern}" --url https://music.yandex.ru/users/cakee.ru/playlists/3 && notify_silent "Music download complete." || notify_silent "Failed to download music!"
output=$(${package}/bin/yandex-music-downloader --browser "firefox" --hq --skip-broken --add-lyrics --embed-cover --skip-existing --stick-to-artist --only-music --path-pattern "${pattern}" --url https://music.yandex.ru/users/cakee.ru/playlists/3)
if [[ $? = 0 ]]; then
notify_silent "Music download complete: ''${output}"
else
notify_silent "Music download failed. Capcha?"
fi
'');
in util.mkStaticSystemdService {
enable = true;