RobbH wrote:
> 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!
Gulp! This looks as if it's definitely worth looking into and I can see
that it'll require me to get yet another entire education and read even
more head-scratching Arch Linux documentation. I'll let you know how it
goes if and when I start delving into it!
_______________________________________________________________________
Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3
running on Wandboard Quad, music library on USB HDD
Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical
Fidelity X-Act, extra speakers in kitchen, basement, and bedroom
connected by ordinary (not unidirectional) copper wire.
------------------------------------------------------------------------
Lestrad's Profile: http://forums.slimdevices.com/member.php?userid=40857
View this thread: http://forums.slimdevices.com/showthread.php?t=113145
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter