[RELEASE] iPhoto Plugin Addon for XBMC

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Toxic Man Offline
Junior Member
Posts: 20
Joined: Jan 2012
Reputation: 0
Question  This config not supported? Post: #61
Hi all,
New to the forum, not a newbie. Nerd

I have a kickin mac mini Lion server with thunderbolt connected to a Pegasus R4 loaded to 8gb. Tongue

The Pegasus storage array is my media hub and is mounted as a volume on the mac mini and shared via AFP and SMB.

My iPhoto library is on the array. I've configured my ATV2 with XBMC "Eden" and this iPhoto plugin as follows:
Video Folder added that points to AFP share of the iPhoto directory
Plugin configured to reference the iPhoto share, and scan automatically
Plugin appears to begin scan but progress bar does not progress. After a few minutes it disappears and no content is loaded.


I suspected that the xml references don't allow for the plugin to convert appropriately to a fully qualified AFP or SMB path. :confused2:

Here is a snippet of the AlbumData.xml header:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Application Version</key>
<string>9.2.1</string>
<key>Archive Path</key>
<string>/Volumes/Media Hub/Pictures/iPhoto Library</string>
<key>ArchiveId</key>
<string>1</string>
<key>List of Albums</key>

and here is a snippet of an asset within the library:

<key>ImagePath</key>
<string>/Volumes/Media Hub/Pictures/iPhoto Library/Masters/2006/Disneyland 2006/061004_0261.jpg</string>
<key>ThumbPath</key>
<string>/Volumes/Media Hub/Pictures/iPhoto Library/Thumbnails/2006/Disneyland 2006/061004_0261.jpg</string>
<key>ImageType</key><string>JPEG</string>
<key>latitude</key><real>33.8125201</real><key>longitude</key><real>-117.9189831</real>
</dict>
<key>4321</key>
<dict>
<key>MediaType</key>
<string>Image</string>
<key>Caption</key>
<string>061004_0262</string>
<key>Comment</key>
<string>Disneyland 2006</string>


Can any of the really smart people on this forum help me get this plugin configured to work with my setup? Big Grin

Much appreciated! Smile
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #62
Toxic Man Wrote:Plugin appears to begin scan but progress bar does not progress. After a few minutes it disappears and no content is loaded.

I recently set up XBMC on an ATV2 for my father (I don't personally have one) and encountered a similar issue. I'm not sure why it's not keeping the progress dialog up, but it actually *did* scan the library if I selected Update Library again manually after it disappeared. The progress dialog just never showed anything matching reality during the process.

I suggest you try it as I did (hit Update Library after the dialog disappears) and then be patient. Leave it sitting on the add-on screen for a while (5-10 minutes or so to be safe). Then exit the plugin and start it again. In my case, the photos were all there at this point.

I'm not totally sure why XBMC is having issues with the progress dialog. As I said, I don't personally own an ATV2 so it's a bit of trouble for me to debug it as I'd have to borrow my father's and he uses it frequently...

Toxic Man Wrote:I suspected that the xml references don't allow for the plugin to convert appropriately to a fully qualified AFP or SMB path. :confused2:

No, the add-on actually does take that into account. That *shouldn't* be the problem, but as always, if you send me a debug log I can know more.

-j
find quote
Toxic Man Offline
Junior Member
Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #63
jingai Wrote:I recently set up XBMC on an ATV2 for my father (I don't personally have one) and encountered a similar issue. I'm not sure why it's not keeping the progress dialog up, but it actually *did* scan the library if I selected Update Library again manually after it disappeared. The progress dialog just never showed anything matching reality during the process.

I suggest you try it as I did (hit Update Library after the dialog disappears) and then be patient. Leave it sitting on the add-on screen for a while (5-10 minutes or so to be safe). Then exit the plugin and start it again. In my case, the photos were all there at this point.

I'm not totally sure why XBMC is having issues with the progress dialog. As I said, I don't personally own an ATV2 so it's a bit of trouble for me to debug it as I'd have to borrow my father's and he uses it frequently...

-j

Was very patient and the library never builds. The progress bar goes away, and no amount of refresh, scan, etc ever yields any photos in the library.


As for debug log, pls point me to process for extracting such and I'll do so.

Thanks!
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #64
Toxic Man Wrote:Was very patient and the library never builds. The progress bar goes away, and no amount of refresh, scan, etc ever yields any photos in the library.

Right after the progress dialog went away, did you immediately select the "<<< Update Library>>>" button again? That's what got it to work on my father's ATV2.

How big is your photo library (number of photos), by the way? And you are using the iPhoto from iLife '11? Or an older one?

I'm not sure why it's doing this on the ATV2 -- it works fine on Windows/MacOS X/Linux. Maybe some XBMC dev here can have a look?

Toxic Man Wrote:As for debug log, pls point me to process for extracting such and I'll do so.

In System>Settings, enable debugging first of all. Then go into my addon and select "<<< Update Library >>>" (if it doesn't trigger on its own).

Then ssh into the box (or scp it) and copy the log file out to another machine from where you can paste it here (using pastebin or whatever you prefer). I don't remember the exact location of the log on the ATV2 but I'm sure a quick search of the forums/wiki will yield that answer.

-j
find quote
Toxic Man Offline
Junior Member
Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #65
jingai Wrote:Right after the progress dialog went away, did you immediately select the "<<< Update Library>>>" button again? That's what got it to work on my father's ATV2.

Yes, no go

jingai Wrote:How big is your photo library (number of photos), by the way? And you are using the iPhoto from iLife '11? Or an older one?
iLife '11 and about 4500 photos across 35 events

jingai Wrote:I'm not sure why it's doing this on the ATV2 -- it works fine on Windows/MacOS X/Linux. Maybe some XBMC dev here can have a look?
-j

I'm not sure either, but would love some help from an ATV2 owner and dev with experience on this plugin...
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #66
Toxic Man Wrote:I'm not sure either, but would love some help from an ATV2 owner and dev with experience on this plugin...

I'm the developer of the plugin Smile However, the problem may lie in the iOS port of XBMC, which is why I asked for another dev to have a look.

But I need your debug log (with debugging enabled, as instructed) to help you further..

-j
find quote
Toxic Man Offline
Junior Member
Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #67
jingai Wrote:I'm the developer of the plugin Smile However, the problem may lie in the iOS port of XBMC, which is why I asked for another dev to have a look.

But I need your debug log (with debugging enabled, as instructed) to help you further..

-j

Super. Will enable the debug tonight and time permitting try to get some logs!
find quote
Toxic Man Offline
Junior Member
Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #68
Log Created...

http://pastebin.com/va5xNAab

Thanks for taking a look...

AFP credentials removed for obvious reasons...
(This post was last modified: 2012-01-25 03:47 by Toxic Man.)
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #69
Toxic Man Wrote:Log Created...

http://pastebin.com/va5xNAab

You've got something strange in your AlbumData.xml. Possibly a weird character the parser isn't expecting to see, but could also be that you've got some metadata or something stored on some photos that I wasn't expecting to see.

Would you mind sending me your AlbumData.xml? That would be the easiest way for me to debug this since I can just import it and debug things without a bunch of back-and-forth. Feel free to PM me with the link to get at it if you don't want it to be public.

-j
find quote
Toxic Man Offline
Junior Member
Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #70
jingai Wrote:You've got something strange in your AlbumData.xml. Possibly a weird character the parser isn't expecting to see, but could also be that you've got some metadata or something stored on some photos that I wasn't expecting to see.

Would you mind sending me your AlbumData.xml? That would be the easiest way for me to debug this since I can just import it and debug things without a bunch of back-and-forth. Feel free to PM me with the link to get at it if you don't want it to be public.

-j

PM Sent.
find quote
Post Reply