For removing music with low rating by chosen strategy.
Imaging you downloaded plenty of tracks and want to get rid of ones with low rating.
You have to have installed docker and docker compose.
git clone git@github.com:GrinWay/music.git && cd music && touch .env.local .env.dev.local && cd docker
-
Copy your music tracks to the
load_musicdirectory of this project -
Run the application (in the
dockerdir):clear && docker compose down && docker compose up -
At last, open a new terminal and execute the removing
clear && docker exec -it music sh -c "cd /app/load_music && music rm '< 90'"You say: "I want to remove music with rating < 90 from
load_musicdirectory" -
Accept or deny removal tracks with set rating.
-
Accept or deny removal tracks with set rating.
Strategy decides what API to choose to download the music rating.
By default, music rating is taken with the help of deezer strategy.
To tell the truth, it’s the only available strategy, because it’s free in contrast to non-existent spotify strategy.
But if I could obtain an appropriate subscription for an hour, I could make it working…
Inside the container you could pass the strategy explicitly:
music rm '< 90' deezer
You can see local logs by link:
http://localhost:5601/app/discover#/?_g=(filters:!(),query:(language:kuery,query:music),refreshInterval:(pause:!t,value:10000),time:(from:now-15m,to:now))&_a=(columns:!(channel,message,context.trace,level_name,datetime),filters:!(),grid:(columns:(channel:(width:91),message:(width:429))),index:'1596646f-456a-4741-bce9-13f476e69dc7',interval:auto,query:(language:kuery,query:'channel:music%20and%20level_name:CRITICAL'),sort:!())
Amazing, I love Symfony.