YaMusicDownload : Update notification.
This commit is contained in:
parent
4b281d4a4d
commit
26771dfc46
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue