PDA

View Full Version : Random Mix Genre Extended Character Bug



jonheal
2006-01-12, 02:49
I have some extended characters in my genres -- curly apostrophes and the like. In the Browse Genres view, they render fine. In the Random Mix Genre Selector view, not so nice.

Dr Lovegrove
2006-01-12, 04:54
On 12/01/06, jonheal <jonheal.21in1b (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> I have some extended characters in my genres -- curly apostrophes and
> the like. In the Browse Genres view, they render fine. In the Random
> Mix Genre Selector view, not so nice.

On the subject of RandomMix, is there any way to turn it off via the CLI ?
In Moose I queue new music via 'playlistcontrol', but if the player's
in RandomMix
mode, it'll queue the new music, then carry on adding random songs to the
end of the new playlist as it plays..

--
- Dr Lovegrove
http://www.rusticrhino.com/drlovegrove

max.spicer
2006-01-12, 05:39
Random mix will stop if you replace the current playlist. If you just add to the playlist, random mix will keep going. You can specifically stop the mix via the player and web ui, but I don't know if you can do this via the cli (probably not).

Max


On 12/01/06, jonheal <jonheal.21in1b (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> I have some extended characters in my genres -- curly apostrophes and
> the like. In the Browse Genres view, they render fine. In the Random
> Mix Genre Selector view, not so nice.

On the subject of RandomMix, is there any way to turn it off via the CLI ?
In Moose I queue new music via 'playlistcontrol', but if the player's
in RandomMix
mode, it'll queue the new music, then carry on adding random songs to the
end of the new playlist as it plays..

--
- Dr Lovegrove
http://www.rusticrhino.com/drlovegrove

Dr Lovegrove
2006-01-12, 06:25
On 12/01/06, max. spicer <max.spicer.21iuwn (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> Random mix will stop if you replace the current playlist. If you just
> add to the playlist, random mix will keep going.

Indeed, although if I do a "playlistcontrol cmd:load", which replaces
the playlist via CLI, it doesnt seem to stop it.. Pretty simple bug to
fix I guess..

> You can specifically
> stop the mix via the player and web ui, but I don't know if you can do
> this via the cli (probably not).

No, although I could map a hidden button I guess.. Actually that would
be a great way of solving the CLI -> plugin problems - dynamic button
mapping via the CLI..

--
- Dr Lovegrove
http://www.rusticrhino.com/drlovegrove

mherger
2006-01-12, 07:20
> No, although I could map a hidden button I guess.. Actually that would
> be a great way of solving the CLI -> plugin problems - dynamic button
> mapping via the CLI..

We're getting OT here... but let me add some more to it :-).

I recently thought about the plugin/CLI problem. It's complexity lies in
the possibilities a plugin has. Everything can't be handled by a simple
button. Let's take eg. a radio plugin: it would need some browse
functionality (don't ask me to push that virtual "down" button a few tens
times ;-)). Others like the Biography plugin mainly expose a web page or
(on the player) a few lines of text. Would you expect them to return that
information on a press of a button?

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

max.spicer
2006-01-12, 10:54
If you look at the random mix code (around line 563) you'll see that it has a specific list of commands that it watches out for. If it sees one of these commands, it stops the mix. Run slimserver with d_plugins and watch out in the log for what command random mix receives in your case (it will say "RandomPlay: received command ...". Providing this command doesn't conflict with any other situations where stopping would be inappropriate, this command can just be added to the list. Please post the results here as I'm curious to know which command I missed!

Max


On 12/01/06, max. spicer <max.spicer.21iuwn (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> Random mix will stop if you replace the current playlist. If you just
> add to the playlist, random mix will keep going.

Indeed, although if I do a "playlistcontrol cmd:load", which replaces
the playlist via CLI, it doesnt seem to stop it.. Pretty simple bug to
fix I guess..

Dr Lovegrove
2006-01-12, 12:24
On 12/01/06, max. spicer <max.spicer.21j9pz (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> If you look at the random mix code (around line 563) you'll see that it
> has a specific list of commands that it watches out for. If it sees
> one of these commands, it stops the mix. Run slimserver with d_plugins
> and watch out in the log for what command random mix receives in your
> case (it will say "RandomPlay: received command ...". Providing this
> command doesn't conflict with any other situations where stopping would
> be inappropriate, this command can just be added to the list. Please
> post the results here as I'm curious to know which command I missed!

Ah, right, yup:

2006-01-12 19:19:37.0261 Matched Format: mp3 Type: mp3 Command: -
2006-01-12 19:19:37.0285 openSong: this is an mp3 file: file:///F:/mp3s/slim2/S/
Sonic%20Boom/Spectrum/01%20-%20Help%20Me%20Please.mp3
2006-01-12 19:19:37.0326 file type: mp3 format: mp3 inrate: 258 maxRate: 0
2006-01-12 19:19:37.0348 command: -
2006-01-12 19:19:37.0371 openSong: opening file F:\mp3s\slim2\S\Sonic
Boom\Spectrum\01 - Help Me Please.mp3
2006-01-12 19:19:37.0678 seeking in 1833 into F:\mp3s\slim2\S\Sonic
Boom\Spectrum\01 - Help Me Please.mp3
2006-01-12 19:19:37.0723 Streaming with format: mp3
2006-01-12 19:19:37.2656 RandomPlay: received command open
file:///F:/mp3s/slim2/S/Sonic%20Boom/Spectrum/01%20-%20Help%20Me%20Please.mp3
2006-01-12 19:19:37.2699 RandomPlay: while in mode: track, from
Downstairs player
2006-01-12 19:19:37.2747 xx:xx:xx:xx:xx:xx New play mode: play
2006-01-12 19:19:37.2863 xx:xx:xx:xx:xx:xx: Current playmode: play
2006-01-12 19:19:37.2890 RandomPlay: received command playlistcontrol
cmd:load album_id:449 artist_id:1769 count:7
2006-01-12 19:19:37.3075 RandomPlay: while in mode: track, from
Downstairs player
2006-01-12 19:19:37.3333 We need to send 0 seconds of silence...
2006-01-12 19:19:37.3357 sending 0 bytes of silence
2006-01-12 19:19:37.8379 Got a track starting event
2006-01-12 19:19:37.8404 Song 0 has now started playing
2006-01-12 19:19:37.8432 RandomPlay: received command newsong
2006-01-12 19:19:37.8458 RandomPlay: while in mode: track, from
Downstairs player
2006-01-12 19:19:37.8499 RandomPlay: new song detected (0)
2006-01-12 19:19:37.8524 RandomPlay: playRandom called with type track
2006-01-12 19:19:37.8547 RandomPlay: 6 songs remaining, songIndex = 0
2006-01-12 19:19:37.9631 RandomPlay: Starting random selection of 3 items for ty
pe: track

--
- Dr Lovegrove
http://www.rusticrhino.com/drlovegrove

max.spicer
2006-01-14, 03:45
Thanks for that. I need to have a play with this as I don't know how the new callback mechanism works (Fred's rewritten the appropriate bits of random mix to work with this, and I'm not up to speed with it). Could you give me a transcript of loading an album via the cli. I'll then do it myself and work out what needs changing to have random mix exit appropriately.

Max


On 12/01/06, max. spicer <max.spicer.21j9pz (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> If you look at the random mix code (around line 563) you'll see that it
> has a specific list of commands that it watches out for. If it sees
> one of these commands, it stops the mix. Run slimserver with d_plugins
> and watch out in the log for what command random mix receives in your
> case (it will say "RandomPlay: received command ...". Providing this
> command doesn't conflict with any other situations where stopping would
> be inappropriate, this command can just be added to the list. Please
> post the results here as I'm curious to know which command I missed!

Ah, right, yup:

2006-01-12 19:19:37.0261 Matched Format: mp3 Type: mp3 Command: -
2006-01-12 19:19:37.0285 openSong: this is an mp3 file: file:///F:/mp3s/slim2/S/
Sonic%20Boom/Spectrum/01%20-%20Help%20Me%20Please.mp3
2006-01-12 19:19:37.0326 file type: mp3 format: mp3 inrate: 258 maxRate: 0
2006-01-12 19:19:37.0348 command: -
2006-01-12 19:19:37.0371 openSong: opening file F:\mp3s\slim2\S\Sonic
Boom\Spectrum\01 - Help Me Please.mp3
2006-01-12 19:19:37.0678 seeking in 1833 into F:\mp3s\slim2\S\Sonic
Boom\Spectrum\01 - Help Me Please.mp3
2006-01-12 19:19:37.0723 Streaming with format: mp3
2006-01-12 19:19:37.2656 RandomPlay: received command open
file:///F:/mp3s/slim2/S/Sonic%20Boom/Spectrum/01%20-%20Help%20Me%20Please.mp3
2006-01-12 19:19:37.2699 RandomPlay: while in mode: track, from
Downstairs player
2006-01-12 19:19:37.2747 xx:xx:xx:xx:xx:xx New play mode: play
2006-01-12 19:19:37.2863 xx:xx:xx:xx:xx:xx: Current playmode: play
2006-01-12 19:19:37.2890 RandomPlay: received command playlistcontrol
cmd:load album_id:449 artist_id:1769 count:7
2006-01-12 19:19:37.3075 RandomPlay: while in mode: track, from
Downstairs player
2006-01-12 19:19:37.3333 We need to send 0 seconds of silence...
2006-01-12 19:19:37.3357 sending 0 bytes of silence
2006-01-12 19:19:37.8379 Got a track starting event
2006-01-12 19:19:37.8404 Song 0 has now started playing
2006-01-12 19:19:37.8432 RandomPlay: received command newsong
2006-01-12 19:19:37.8458 RandomPlay: while in mode: track, from
Downstairs player
2006-01-12 19:19:37.8499 RandomPlay: new song detected (0)
2006-01-12 19:19:37.8524 RandomPlay: playRandom called with type track
2006-01-12 19:19:37.8547 RandomPlay: 6 songs remaining, songIndex = 0
2006-01-12 19:19:37.9631 RandomPlay: Starting random selection of 3 items for ty
pe: track

--
- Dr Lovegrove
http://www.rusticrhino.com/drlovegrove