Hi
I can post this as a bug, but wondered if anyone else had come across it. It looks like the cli
doesn't understand the modern url syntax - used for online music integration for example. If I have a favourite pointing to, say, classic fm, I can play it usingCode:favorites playlist play
However, if I use the same approach to play a favourite which points to local music, or online music (qobuz, tidal), they don't play. Playing the favourites through the UI works fine of course.Code:favorites playlist play search:Classic%20FM
If I do
I can get the response including the url. Extracting the url (as favouriteurl say), I can then doCode:favorites items 0 1 search:SomeTidalFavourite want_url:1
So, I guess playlist play was updated to understand the new syntax, but favorite playlist play wasn't.Code:playlist play favouriteurl
Anyone else seen this?
pete S
Results 1 to 5 of 5
-
2021-01-03, 13:27 #1
- Join Date
- Jun 2012
- Posts
- 355
CLI : favorites playlist play doesn't understand online integration urls
-
2021-01-03, 13:41 #2
CLI : favorites playlist play doesn't understandonline integration urls
> doesn't understand the modern url syntax - used for online music
What do you mean by "modern url syntax"? If there's anything that hasn't
changed with the online music library integration, then it's the URL
schemas...
> --------------------
> favorites playlist play search:Classic%20FM
> --------------------
In this case you're not playing a URL, but the result of a search.
> However, if I use the same approach to play a favourite which points to
> local music, or online music (qobuz, tidal), they don't play. Playing
> the favourites through the UI works fine of course.
How exactly would your command look like? Anything in server.log when
you fail to play an item this way?
--
Michael
-
2021-01-03, 13:59 #3
- Join Date
- Jun 2012
- Posts
- 355
Hi Michael
OK, I'm assuming it's to do with the URL syntax because that's the only difference I can see. So, if I have 2 favourites saved in my LMS favourites list as follows
Classic FM : URL : http://icecast.thisisdax.com/ClassicFMMP3
Aladdin Sane : URL : db:album.title=Aladdin%20Sane%20(2013%20Remaster)
If I do
00:04:20:xx:xx:xx favorites playlist play search:Classic%20FM
that works fine but
00:04:20:xx:xx:xx favorites playlist play search:Aladdin%20Sane
will turn on the player if it's off, but doesn't update the playlist.
Server.log shows
[21-01-03 20:51:14.0449] Slim::Player::Song::new (113) Error: Could not find handler for db:album.title=Aladdin%20Sane%20(2013%20Remaster)!
pete S
-
2021-01-03, 14:05 #4
CLI : favorites playlist play doesn't understandonline integration urls
> Classic FM : URL : http://icecast.thisisdax.com/ClassicFMMP3
> Aladdin Sane : URL : db:album.title=Aladdin%20Sane%20(2013%20Remaster)
But playing that URL directly would work?
--
Michael
-
2021-01-03, 14:28 #5
- Join Date
- Jun 2012
- Posts
- 355
So, that's the URL that gets added to the LMS favourites if you add it through the LMS UI - i.e. just find it through My Music and click the heart. Playing the favorite through the UI then works fine. I can also play that URL through "tune in" directly. I also get the same if I create a favourite for an album in my local library. So, if I create a favourite for an album called "13", it creates a url
db:album.title=13
Same behaviour. I can play the album from LMS UI favourites, I can tune in directly to that URL (by editing it in favourites and copying it), I can play that URL via
playlist play db:album.title=13
but trying to play via the favourite in cli doesn't work where the url of the favourite looks like db:album.title=.....
pete S