I have many songs stored in foobar2000 on Windows, and I wanted to listen to them from other Macs or tablets. foobar2000 mac and foobar2000 mobile seemed suitable for this purpose, but it took a long time to list the songs. So I used this script to create a playlist in advance to save me the trouble.
- step 0: create playlist in your foobar2000
- step 1: install
UPnP/DLNA Renderer, Server, Control Point
in your foobar2000- and make some configuration
- step 2: install pip packages
- upnpclient
- step 3: run
python3 upnp.py
+ root : ObjectID = 0
+--+ Playlists : ObjectID = 0/0
+--- Playlist 1 : ObjectID = 0/0/0
+--- Playlist 2 : ObjectID = 0/0/1
+--- Playlist 3 : ObjectID = 0/0/2
...
+--- Playlist n : ObjectID = 0/0/n
+--- Media Library : ObjectID = 0/1
+--- Playback Stream : ObjectID = 0/2
Use it for UPnP/DLNA Server configuration (Tools
->UPnP
->Server
->Streaming Profiles
in your foobar2000 Library->Configure
)
python-requests/2.25.1