pippin;526439 Wrote: > > > RonD2 Wrote: > > > > Would it be possible to display the contents of a *.txt file residing > > in the folder from which the current song is playing? I have many > > (legal) live boots that have txt files with info such as venue, > > personnel, etc. Unfortunately they are not always named "info.txt" but > > they are the only txt file in the folder. > > > > > No and No. iPeng has no access to your folders, iPeng only has access > to Squeezebox Server's library. You'd need to somehow tell SBS to scan > that file and provide access to it. It's not that anybody can just > ready any file from your PC/Mac with an iPhone, which actually is a > good thing :) > If there is a general use for something like this it would be possible to handle it through the "Song Info" plugin I mentioned I'm working on earlier in the thread.
At the moment the plan is that it will have three JSON commands, something like: songinfo gettrackinfo lastfmtracktags trackid:345 songinfo getartistinfo lastfmartistimages artistid:12 songinfo getalbuminfo xxx albumid:52 The last parameter trackid/artistid/albumid will be optional, if it isn't specified it will use the information from the currently playing song.. The second last parameter "lastfmtracktags/lastfmartistimages/xxx" will tell the "Song Info" plugin what to get, this could be something like "albumtextfile" which would get the text from a .txt file with a specific name in the same directory as the music file. The second last parameter refers to a module/plugin that implements it, some will be provided by default by the "Song Info" plugin (like some lastfm modules) but others could be provided as separate plugins. Of course, you still have to decide if this is something you like to use, as mentioned earlier my main purpose at the moment is to get artist images in my "Album Flow" applet and I'll possibly also use it in the "Custom Clock" applet to display extra information. By the way, the second command sample shown above works on my development machine and returns a list of url's to artist images from LastFM web site. The images on LastFM are available in different sizes, I'm not sure if I should just return the "original" size or if you would like to get links to the pre scaled available from LastFM with the widths: - small(34 pixels wide) - medium(64 pixels wide) - large(126 pixels wide) - extralarge(252 pixels wide) There is also a square image format 126x126 pixels called "largesquare". I'm note sure I like to do any scaling in the Song Info plugin, so I think we need to either rely on the above formats avaialble directly from LastFM or making iPeng use the rescale image proxy on MySB or rescale the image locally on iPeng. As a side note, would you prefer a image url towards SBS instead of getting the urls directly towards the LastFM site ? I think you mentioned that it didn't matter previously. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=74581 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
