I think what's impossible is building this functionality into LMS so
that it would "just work" out of the box. There are too many factors
that LMS cannot be expected to know.
If the Linux box running LMS has the command line utility Squeezy
installed, and Python, along with the urllib module, it should be
possible to set up a command to do the necessary conversion.
For instance, if the music library is mounted on the Linux box as
/home/myname/Music_collection/ and Windows sees the Samba share as
F:\Music\, the following command on the Linux box will translate the
path of the currently playing file to the right format for Windows:
Code:
--------------------
python2 -c "import urllib, sys; print urllib.unquote(sys.argv[1])"
"$(squeezy -a -playing | grep path | awk -F'///' '{print $2}' | sed -e
s?'home/myname/Music_collection'?'F:/Music'? )" | tr '/' '\\'
--------------------
output: F:\Music\Alphabetical\W\Wynton Marsalis\Standard Time\5-12 - The
Midnight Blues.mp3
If what's wanted is the path to the directory, without the file name,
this will work:
Code:
--------------------
dirname "$(python2 -c "import urllib, sys; print
urllib.unquote(sys.argv[1])" "$(squeezy -a -playing | grep path | awk -F'///'
'{print $2}' | sed -e s?'home/myname/Music_collection'?'F:/Music'? )")" | tr
'/' '\\'
--------------------
output: F:\Music\Alphabetical\W\Wynton Marsalis\Standard Time
This assumes that the track to be edited is playing on my "All-players"
sync group, which squeezy identifies as player 'a', the first parameter
in its command.
I don't know anything about VB Script, but I'm guessing there is a way
to set up a script to run by clicking on a desktop shortcut, and that
there is some way to automate a remote session in ssh, returning the
value of the final output.
Is this really feasible or even worth the trouble? That's not for me to
say!
LMS 8 nightly; 3 Squeezelite players connected by powerline ethernet; 5
wireless players connected via Airplay Bridge; 1 SqueezeAmp player
no high-end or esoteric audio gear
1 Squeezebox Radio (upgraded UE Smart Radio) now mostly retired
------------------------------------------------------------------------
RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=113145
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter