Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-17 Thread Bhima

Craig, James (IT);356561 Wrote: 
> 
> Yes, if you
> * install the plugin
> * rename the .par file to .zip
> * unzip it in place
> 
> the plugin should still work...
> (Leave the .par file renamed or delete it, otherwise I'm not sure which
> version gets used!)
> 
> James

Over the weekend I had chance to try this and it still does not work
for me.  If I unzip the file in place I get a directory structure that
looks suspiciously recursive and the plugin will not load.  If I re-zip
the directory with my changes the plugin will not load either.

So any further guidance you could send my way would be appreciated.


-- 
Bhima

Bhima's Profile: http://forums.slimdevices.com/member.php?userid=20580
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-04 Thread nolspeed29

Thanks for your help...I was under the impression that if I am using the
built in iTunes scanner integration built into Squeezecenter, that I
should leave the playlist location blank.  I have read it could cause
problems or conflicts.  If this is not the case, I will just change
this setting and all should be well.  Otherwise, I will edit the .pm
file I listed above and remove the .par file as you suggested.  We'll
see how it goes...

Thanks again,

--Nolan


-- 
nolspeed29

nolspeed29's Profile: http://forums.slimdevices.com/member.php?userid=20845
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-04 Thread Craig, James (IT)
The history file is always saved in the playlist directory. So if you're not 
using that setting, just set it to wherever.
If you want to change the location to something else, you'll need to find where 
that variable is actually used, and stop it from having the playlist folder 
path added to it.

The .par file is really just a zip file. If you extract the files & structure 
from within it, and remove it, SqueezeCentre will use the files instead, so 
they can be modified locally.


James
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-04 Thread nolspeed29

So how can I change the storage location of the 'iTunes_Hist.txt' file? 
After unzipping the *.par file, I looked at /lib/lib/Plugins/iTunesUpdate/Plugin.pm .  I found the line: 

# filename to save iTunes update data to
my $ITUNES_UPDATE_HIST_FILE = "iTunes_Hist.txt";

Woo!  I figure I can just alter this line to point it towards a
location that my macbook can 'see' (my media share for example).  The
problem is how do I rebuild the set of files so squeezecenter will
reload the plugin?  I assume I have to rebuild the .par file???  Is
there a special tool to do this?  

Thank you for the help, I'm so close!

--Nolan


-- 
nolspeed29

nolspeed29's Profile: http://forums.slimdevices.com/member.php?userid=20845
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-04 Thread Craig, James (IT)
I've put a new version on my web page that includes the script again.

I also added an option to enable the new 'bookmark' functionality (which 
defaults to off) and attempt to reset the iTunes bookmark to zero when the 
track is played in SlimServer.

Yes, if you
* install the plugin
* rename the .par file to .zip
* unzip it in place

the plugin should still work...
(Leave the .par file renamed or delete it, otherwise I'm not sure which version 
gets used!)

James
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-03 Thread nolspeed29

After getting home tonight and looking things over some more, I realize
there is a problem in my setup.  

It has to do w/ using a sym link on a afp share (that my macbook can
see) pointing towards the iTunes_Hist.txt file sitting on the / level
of my NAS.  When the process successfully completed, it added a .done
extension to this link.  I understand that it does this (usually to the
actual iTunes_Hist.txt) so these old 'listens' don't get added to the
next update.  The trouble is my original iTunes_Hist.txt has just kept
appending new listens to it, which would result in duplicating the old
listening data.  

Is there a way to change the storage location of this 'iTunes_Hist.txt'
file from the plugin configuration (or editing some source code).  I
hope I described the problem clearly.  Thanks!

--Nolan


-- 
nolspeed29

nolspeed29's Profile: http://forums.slimdevices.com/member.php?userid=20845
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-03 Thread erland

Craig, James \(IT\);356247 Wrote: 
> iTunesUpdate.pl wasn't in the latest version of the plugin's zip file?
> That is a bit puzzling.
> 

You might have the same problem as I had, *.pl files aren't included in
the zip file built with the PluginBuilder tool. 
There is a patch for it in this bug report:
http://bugs.slimdevices.com/show_bug.cgi?id=6980


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library 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=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-03 Thread Bhima

Craig, James \(IT\);356247 Wrote: 
> iTunesUpdate.pl wasn't in the latest version of the plugin's zip file? 
> That is a bit puzzling.

It isn't in mine either... but there is an iTunesUpdate.*pm*.

I used a regular un-archiver to get into the PAR file which had that in
it.  And I changed it.  Is there a way to just use the unpacked
directory structure, instead of the PAR file?  Or do I need to repack
it using some utility I don't know about?


-- 
Bhima

Bhima's Profile: http://forums.slimdevices.com/member.php?userid=20580
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-03 Thread nolspeed29

Thanks for your help.  I was finally able to get things working on my
setup (itunes library/music on linux NAS, access it through itunes
running on a mac) combined w/ the squeezebox boom.  Some notes:

1)I had to scour the older versions of the plugin in order to get the
itunesupdate.pl script.  

2) I realized that I must run this on the Mac that has iTunes going on
it.  Not on the linux box that has the actual library.  

3)In order to point the .pl script to the history txt file that the
plugin generates (which was created at the root level of my NAS), I had
to create a symbolic link on my media share mounted on the map.  

4)The itunesupdate.pl file that I downloaded needs the #!/usr/bin/perl
added to the top of it.

5)As you mentioned (and in the readme file), I had to get a few perl
modules that allow perl to run applescript commands (this is how it
controls itunes to update the tracks).  Prior to doing this as directed
in the readme, I had to set up fink and install some prerequisite
programs lynx and wget.  I also downloaded precompiled install packages
for ncftpget and gpg from their sites.

After all of this, I was FINALLY able to get it working.  I'm very
happy that I have this ability now, It's just not that simple for the
(probably)unconventional setup I run.  Thanks again!


-- 
nolspeed29

nolspeed29's Profile: http://forums.slimdevices.com/member.php?userid=20845
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-11-02 Thread Bhima

So, I finally got a chance to test this and I don't think it is
working.

I had thought to add some logging so I can see what happens when...
However, I am not sure how to get the changes I make to plugin.pm to be
used.


-- 
Bhima

Bhima's Profile: http://forums.slimdevices.com/member.php?userid=20580
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-30 Thread nolspeed29

While we are on the subject of iTunes Updater...I have a question
related to it's use with my itunes library residing on a linux based
NAS drive (Netgear ReadyNAS Duo) running SC 7.2.1.

I have successfully installed v.2.5.3 of the plugin and have it
activated in the 'Plugins' section of the settings.  Initially I left
all settings alone (direct updating turned off) and I did not see any
updating of my itunes play counts taking place.  

I was getting reports in the log file that itunes update plugin was
reporting songs as listened (met the minimum time elapsed to be
counted), but still no updates to my itunes library.  

I made sure itunes was not open on my Macbook (which accesses the
library/files on the NAS) while I was listening on my squeezebox boom,
in case this poses a problem.  

So has anyone been able to get this plugin to work installed on a linux
NAS drive w/ their music on the same drive?


-- 
nolspeed29

nolspeed29's Profile: http://forums.slimdevices.com/member.php?userid=20845
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-29 Thread exile

I've just gotten the itunesupdate plugin working on my mac system and
now I want to transfer my trackstat ratings info over to my itunes
library. can this be done within the itunesupdate plugin or do I need
to use erland's customscan module?


-- 
exile

exile's Profile: http://forums.slimdevices.com/member.php?userid=4579
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-29 Thread Bhima

Great!  I'm really interested in what you've changed / added.  Is
everything in the plugin.pm or should I be looking elsewhere?


-- 
Bhima

Bhima's Profile: http://forums.slimdevices.com/member.php?userid=20580
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-28 Thread James

Hi Bhima,
I've made an attempt to add some of the functionality... attached is a
new version of the iTunesUpdate that reads 'bookmarks' from iTunes and
applies them when tracks are played in SlimServer. There is no option
for this (yet) it's always on.
It should work on the Mac, but I can only test the Windows side. 

Next, to work out how to find out the position in a song when it
stops

James


+---+
|Filename: iTunesUpdate-2.6.0.zip   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=6125|
+---+

-- 
James

James's Profile: http://forums.slimdevices.com/member.php?userid=189
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-24 Thread Bhima

The Applescript syntax is really straight forward (as usual)

Bookmarkable is a boolean, Bookmark is real, Player Position is an
integer (seconds). 

To write the bookmark

If current track is bookmarkable then
set bookmark of current track to player position
End if

and to read the bookmark:

If current_track is bookmarkable then
set player position to bookmark of current track
End if


So it appears that now I need to find out a few other things:

Where it would be appropriate to add this to the iTunes Update
plugin... I suppose where it reads tracks before playing, and updates
iTunes after stopping.

How to read & write the player position in SqueezeCenter


-- 
Bhima

Bhima's Profile: http://forums.slimdevices.com/member.php?userid=20580
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


Re: [SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-24 Thread Craig, James (IT)
Hi Bhima,
So you found the properties to set the bookmark!

The iTunes Update plugin uses a library called Mac::Applescript to dynamically 
generate & execute Applescript to perform any changes on the Mac.
So the first step is to work out the Applescript that would perform such an 
update.
Then one needs to work out the Mac::Applescript syntax to generate the 
Applescript (generally this is very similar to the Applescript but in a 
different order)

Once you've done all that, updating iTunes Update itself should be pretty easy.

Unfortunately I don't have a Mac so that's about as far as I can help...

James


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins


[SlimDevices: Plugins] Adding Functionality to iTunes Update Plugin

2008-10-24 Thread Bhima

I am interested in extending the functionality of the iTunes Update
plugin and I'm looking for some help.

What I want to do is to add the ability pickup a track at the position
it was last played and to update the iTunes XML Database with the
current player position when a track stopped.  I am using a Mac so I
looked at the iTunes Applescript Library I have found the properties
which are used to accomplish this internally.  Relevant properties of
the item "Track" are: [bookmark (real) : the bookmark time of the track
in seconds] and [bookmarkable (boolean) : is the playback position for
this track remembered?].

So now 2 things need to be done:  One is before a track starts playing
is to check the "bookmarkable" property and if it is true, read the
bookmark property and set the Squeeze player position and play.  Two is
when a track is no longer being played check the "bookmarkable"
property and if it is true, write the bookmark property with the
current Squeeze player position.

I am not so familiar with SqueezeCenter or the iTunes Update Plugin. 
So I was wondering if someone who was could have a look at this and
help me add this feature.


-- 
Bhima

Bhima's Profile: http://forums.slimdevices.com/member.php?userid=20580
View this thread: http://forums.slimdevices.com/showthread.php?t=54153

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins