This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/app/bin/home/yandex_music

20 lines
461 B
Plaintext
Raw Normal View History

2023-08-08 16:24:15 +03:00
#!/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)"