cubii wrote:
> Yeah, another one in the game!
>
> I am working now on a combination of the two scripts, if a new (unknown)
> card is presented, it creates a playlist with the id of the nfc-tag and
> also writes this into the MusicLibrary.txt.
> So the only missing thing is to fill the playlist with music, which can
> be done within the LMS interface /App.
>
>
> No need to use shh or command line...
>
> The use of playlist is brilliant, would never have thought of that (i
> never use playists for anything, normally i am only listening to full
> Albums or radio)
>
> Challenges:
> The name of the playlist is only a number (or needs to be adapted via
> Musiclibrary.txt via ssh)
>
> Will clean my code and upload the next days.
> cubii
>
> EDIT:
> Have attached the script and the adapted player.py from LMSTools
> (replace it!), because i needed the function of playlist.save:
>
> >
Code:
--------------------
> > def playlist_save(self, item):
> """
> Play item
>
> :type item: str
> :param item: link to playable item
>
> """
> # item = self.quote(item)
> self.request("playlist save {}".format(item))
>
>
>
--------------------
> >
> have a good new years eve!
> 3274532746
Great improvement !
in column 49 (PlayTagId_Cubii.py) there is a small typo:
.playlist_clear() must be player.playlist_clear()
A suggestion for improvement:
with player.playlist_get_current_detail(amount=1) we can get the "album
name" of the current played album.
Isnt it possible to use this name as the playlist name of a new nfc-tag
?
- start a new album
- get the "album name"
- register the new nfc-tag and save the playlist with album name to LMS
and Musiclibrary.txt
so no subsequent editing is necessary.
I am trying to implement this, but my knowledge of python is very very
limited
and I don't know if I can do it.
Greetings
------------------------------------------------------------------------
chschind's Profile: http://forums.slimdevices.com/member.php?userid=69071
View this thread: http://forums.slimdevices.com/showthread.php?t=113438
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy