For the more tech savvy people, is there a way to run a library update from a script? I would like to be able to update my library when a beet import finishes. Updating mpd library isn't feasible, because I would like to have the album covers/thumbnails updated too.
Thank you for your donation!
Solved: Update library automatically?
|
09-09-2021, 11:20 AM
(This post was last modified: 09-09-2021, 11:24 AM by Tim Curtis.)
The command below will submit a Library update remotely.
Code: http://moode/command/?cmd=libupd-submit.php ETA: From a BASH script. Code: $(curl -G -S -s --data-urlencode "cmd=libupd-submit.php" http://moode/command/)
09-10-2021, 05:36 AM
Great! Thanks a lot Tim!
Sorry to tag on, but I use a bash script to update the library, that I call on from my PC:
#!/bin/bash echo "Going to update the moOde library" mpc update sleep 5 exit Reading the above, am I correct in assuming that this does not update the album covers? Should I substitute "mpc update" with "libupd-submit.php"? P.S. I do the above, because update the library through not work on my browser(s). But I don't mind that.
09-11-2021, 12:53 AM
Correct, a plain "mpc update" does not update the thumbnails.
Try Code: sudo /var/www/libupd-submit.php
09-11-2021, 03:28 PM
Thanks Tim,
That's very helpful. Of course, it works!
09-15-2021, 11:35 AM
09-15-2021, 12:00 PM
Yes but you would need to modify the PHP script /var/www/libupd-submit.php to accept a folder path as a command line argument. The folder path would need to be relative to MPD music root. Something like that.
09-16-2021, 08:10 AM
OK, I see. Thanks, Tim. I think I'll use as is, because I don't want to mess with patches on every update/upgrade.
|
« Next Oldest | Next Newest »
|