diff --git a/app/bin/home/yandex_music b/app/bin/home/yandex_music index ac2b485..48a0b84 100755 --- a/app/bin/home/yandex_music +++ b/app/bin/home/yandex_music @@ -1,19 +1,5 @@ #!/bin/bash -source /var/roothome/app/bin/home/shared.sh - -if [ ! -f /var/mnt/storage/hot/.mount ]; then - echo mount hot storage - notify 'backup: hot storage not mounted' - exit 1 -fi - -cd /var/roothome/app/ru.cakee.music_transfer - -#/usr/bin/python3 -m venv venv -. venv/bin/activate - -python dl_yandex.py > /tmp/yandex_music.log || notify "music download failed" -/usr/bin/sed -i '1,2d' /tmp/yandex_music.log -notify_silent "$(/usr/bin/cat /tmp/yandex_music.log)" +music="/var/mnt/storage/hot/media/music/" +/usr/bin/docker run --rm -v "${music}":/music voronind.com/yamusic:latest