XBMC Community Forum
[RELEASE] iTunes and iPhoto integration plugins for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] iTunes and iPhoto integration plugins for XBMC (/showthread.php?tid=37313)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


- Boseman - 2010-01-07 00:15

interceptor121 Wrote:I can see Macintosh HD and all the mounts just fine
However inside Albumdata.xml the path is not /volumes/macintosh HD/users but just /users/username/pictures
So I guess that is where the problem is
As I said I am sure that if I move the iPhoto library on a network share it will be fine

Mine is on an external drive and it's fine. Interesting, so the question is how do we fool the ATV/plugin. What if you sym link your Macs username into /Users on the ATV. Something like:

ln -a /mnt/Scratch/Volumes/Macintosh\ HD/Users/<username> /Users/<username>

That should give the iPhoto plugin the same path as what Albumdata.xml has?


- interceptor121 - 2010-01-07 00:52

Yep that works
I see now a symlink to username in scratch users which does the job
I should have got there myself anyway this is I believe 99% of the configuration of a typical user not putting the library on an external drive
Thank you

Quite funny I embarked trying to fix this for fun as I have all my media on a UPnP NAS...where I also have an itune server via mt-daapd

The only thing that is weird is that the performance of the NAS on picture is crap (probably because they are many small files?) while on the iPhoto Library technique is very good despite accessing a mac book


- Boseman - 2010-01-07 01:02

interceptor121 Wrote:Yep that works
I see now a symlink to username in scratch users which does the job
I should have got there myself anyway this is I believe 99% of the configuration of a typical user not putting the library on an external drive
Thank you

Quite funny I embarked trying to fix this for fun as I have all my media on a UPnP NAS...where I also have an itune server via mt-daapd

The only thing that is weird is that the performance of the NAS on picture is crap (probably because they are many small files?) while on the iPhoto Library technique is very good despite accessing a mac book

Glad it worked for you. Good to know that if its on the local/default drive, there is no /Volume reference in the Albumdata.xml. Makes sense.


- interceptor121 - 2010-01-07 01:06

I think the iTunes library is different
In that case you can see localhost/users/username

Not sure I should start playing with this now!

Anyway going back to the iPhoto discussion what is the advantage of this plug in? I mean ok you don't have to copy the pictures on the ATV but pictures are quite strange animals in that are small files and many so maybe keeping the stuff local on the ATV is better?


- interceptor121 - 2010-01-07 01:20

Actually playing with my media server I disabled picture rescaling and now it flies

Having a NAS is much better than trying to share from computers though my NAS has no AFP the fact that XMBC supports Daapd and UPnP solves all issues


- Boseman - 2010-01-07 01:26

Actually, iTunes handles its library management differently. It seems the iTunes library points right to the actual music no matter where it is. So the key there is just to sym link the /Users/<username>/Music/iTunes folder into the ATV /Users/frontrow/Music folder.

ln -a /mnt/Scratch/Volumes/HD\ Macintosh/Users/<username>/Music/iTunes /Users/frontrow/Music

As for an opinion. I really don't use either of these plugins anymore. The iTunes plugin is lacking in information(no thumbs, mp3 tags, etc) and the iPhoto just seems slow to me. So for music/photo integration I use the Apple TV software and interface. Just seems more integrated to me for slideshows and music on my AppleTV connected TV.
There is hope tho. Davilla, one of the premier XBMC OS X developers, seems to have something in the works.

http://forum.xbmc.org/showpost.php?p=441940&postcount=113


- ilgaspa - 2010-01-07 15:17

I think I have the same problem as zarch :| When I press "Import my iphoto library" nothing happens... here are the contents of my log.. any clue on what it can be? :|

Code:
14:08:50 T:2691921152 M:2357309440   ERROR: Unable to load: special://home/plugins/pictures/iPhoto/resources/settings.xml, Line 0
                                            Failed to open file
14:08:50 T:2957156352 M:2357108736  NOTICE: -->Python Interpreter Initialized<--
14:08:52 T:2957156352 M:2358321152   ERROR: Texture manager unable to load file: u:\plugins\pictures\iPhoto\default.tbn
14:08:53 T:2691921152 M:2358657024   ERROR: Unable to load: special://home/plugins/pictures/iPhoto/resources/settings.xml, Line 0
                                            Failed to open file
14:08:53 T:2957688832 M:2358456320  NOTICE: -->Python Interpreter Initialized<--
14:08:53 T:2957688832 M:2358362112  NOTICE: {'action': 'rescan'}
14:08:53 T:2957688832 M:2358362112  NOTICE: 'GUID'
14:08:53 T:2957688832 M:2358362112  NOTICE: Traceback (most recent call last):
14:08:53 T:2957688832 M:2358362112  NOTICE:   File "/Users/ilgaspa/Library/Application Support/XBMC/plugins/pictures/iPhoto/default.py", line 39, in import_library
14:08:53 T:2957688832 M:2358362112  NOTICE:     iparser.Parse(filename)
14:08:53 T:2957688832 M:2358362112  NOTICE:   File "/Users/ilgaspa/Library/Application Support/XBMC/plugins/pictures/iPhoto/iphoto_parser.py", line 543, in Parse
14:08:53 T:2957688832 M:2358362112  NOTICE:     raise e
14:08:53 T:2957688832 M:2358362112  NOTICE: KeyError: 'GUID'
14:08:53 T:2957688832 M:2358362112  NOTICE: None
14:08:53 T:2957688832 M:2358362112  NOTICE: 0
14:08:53 T:2691921152 M:2358362112   ERROR: GetDirectory - Error getting plugin://pictures/iPhoto/?action=rescan
14:08:53 T:2691921152 M:2358362112   ERROR: CGUIMediaWindow::GetDirectory(plugin://pictures/iPhoto/?action=rescan) failed
14:08:53 T:2957688832 M:2358362112  NOTICE: Traceback (most recent call last):
14:08:53 T:2957688832 M:2358362112  NOTICE:   File "/Users/ilgaspa/Library/Application Support/XBMC/plugins/pictures/iPhoto/default.py", line 225, in ?
14:08:53 T:2957688832 M:2358362112  NOTICE:     main()
14:08:53 T:2957688832 M:2358362112  NOTICE:   File "/Users/ilgaspa/Library/Application Support/XBMC/plugins/pictures/iPhoto/default.py", line 220, in main
14:08:53 T:2957688832 M:2358362112  NOTICE:     process_params(get_params(params))
14:08:53 T:2957688832 M:2358362112  NOTICE:   File "/Users/ilgaspa/Library/Application Support/XBMC/plugins/pictures/iPhoto/default.py", line 192, in process_params
14:08:53 T:2957688832 M:2358358016  NOTICE:     sys.exit(0)
14:08:53 T:2957688832 M:2358358016  NOTICE: SystemExit: 0
14:08:53 T:2957688832 M:2358362112  NOTICE: None
14:08:53 T:2691921152 M:2358362112   ERROR: Unable to load: special://home/plugins/pictures/iPhoto/resources/settings.xml, Line 0
                                            Failed to open file
14:08:53 T:2958913536 M:2358280192  NOTICE: -->Python Interpreter Initialized<--



- steve1977 - 2010-01-07 20:02

Boseman Wrote:I know folks are struggling with this and I am sure there are issues, but I do have this successfully working on SL so here goes, hope it helps:

iMac environment
OS X 10.6.2
XBMC 9.11 (R26108)
iPhoto 8.1.1
iPhoto plugin within the XBMC Application

Narrowing down the problem. It appears to work on iPhoto 8, but not on 9. Can anyone confirm this? Anyone running iPhoto 9 with a working iPhoto plugin?


- interceptor121 - 2010-01-07 23:54

I have iPhoto 8. The integration works with both XBMC 9.04 and 9.11


- pecinko - 2010-01-08 09:11

Boseman Wrote:Are there any strange permissions that might be getting in your way? Is the library a "shared" library in iPhoto?

I don't think so. No, library is not shared.

It was working couple-of-iPhoto-updates ago, on 9.04 final.