[RELEASE] iPhoto Plugin Addon for XBMC

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #106
gerdehaas Wrote:Jingai, thanks, in order to produce the debug report I need your help. Can you please provide me with the steps how to do this. I own an iMac and a ATV2, thanks, Gerry

See: http://forum.xbmc.org/showthread.php?tid=92480

Basically:

1) Start XBMC.
2) Enable debugging: System->Settings->System->Debugging
3) Reproduce the problem in the plugin.
4) Quit XBMC.
5) Retrieve xbmc.log and post it somewhere for me (see the link above).

-j
find quote
GGet Offline
Junior Member
Posts: 10
Joined: Jun 2011
Reputation: 0
Post: #107
Just wanted to pass on my appreciation for this great plugin, it's an excellent addition to my XBMC setup.

Cheers,
find quote
nunz56 Offline
Junior Member
Posts: 33
Joined: Mar 2012
Reputation: 0
Location: USA
Post: #108
Any plans to include a "Add Music to Slideshow" option to this app like the iPhoto app on a ATV or Mac? I know you can start music from your music library then go back to iPhoto app, select the photos then start the Slideshow but it would be much nicer to already have that option in iPhoto. That way you could stay in the app and select different Events, Albums etc. and choose your music before playing or set a default music path and use random music similar to the Mac iPhoto version and ATV version. Just a thought....

I also appreciate this app in XBMC. Viewing photos while listening to music is what I use most on my ATV1 with OSX so being able to do it with XBMC on ATV is a plus. Thanks!
(This post was last modified: 2012-03-23 18:55 by nunz56.)
find quote
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #109
(2012-03-23 13:23)GGet Wrote:  Just wanted to pass on my appreciation for this great plugin, it's an excellent addition to my XBMC setup.

Thanks for the kind words! Glad to see it's enjoyed by others.

-j
(2012-03-23 18:43)nunz56 Wrote:  Any plans to include a "Add Music to Slideshow" option to this app like the iPhoto app on a ATV or Mac? I know you can start music from your music library then go back to iPhoto app, select the photos then start the Slideshow but it would be much nicer to already have that option in iPhoto. That way you could stay in the app and select different Events, Albums etc. and choose your music before playing or set a default music path and use random music similar to the Mac iPhoto version and ATV version. Just a thought....

It'd be possible I suppose to select a playlist or a folder from within the iPhoto plugin, but selecting individual songs/albums/etc would be duplicating a lot of existing functionality (namely the Music library view).

I'm currently adding better slideshow support right now, where the add-on will allow you to select photos and folders (events, etc) to add to an "on-the-go" slideshow. I could add this functionality there. I'll think about how best to do it.

I'm not sure if I can have it fire off music from the built-in slideshow function though if it's called from the skin. Don't think I can hook into that, but someone feel free to correct me if I'm wrong.

(2012-03-23 18:43)nunz56 Wrote:  I also appreciate this app in XBMC. Viewing photos while listening to music is what I use most on my ATV1 with OSX so being able to do it with XBMC on ATV is a plus. Thanks!

Thanks! We also use it exactly that way pretty much every time we have company over.

-j
(This post was last modified: 2012-03-24 00:59 by jingai.)
find quote
nunz56 Offline
Junior Member
Posts: 33
Joined: Mar 2012
Reputation: 0
Location: USA
Post: #110
Thanks for the quick reply!

Quote:It'd be possible I suppose to select a playlist or a folder from within the iPhoto plugin, but selecting individual songs/albums/etc would be duplicating a lot of existing functionality (namely the Music library view).
Selecting a playlist would possibly work. That's what I do now with the ATV version. I created a "Slidshow" playlist so any slideshow I start will randomly select music from that playlist.

Quote:I'm currently adding better slideshow support right now, where the add-on will allow you to select photos and folders (events, etc) to add to an "on-the-go" slideshow. I could add this functionality there. I'll think about how best to do it.
Any way to get ATV's "Floating Photos" feature to work with the skin's screensaver? I guess that would be a screensaver development, not an iPhoto?
find quote
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #111
(2012-03-26 17:11)nunz56 Wrote:  Any way to get ATV's "Floating Photos" feature to work with the skin's screensaver? I guess that would be a screensaver development, not an iPhoto?

Correct, that would be a screensaver. It's very likely one could be written that supports crawling my plugin for photos, but I personally have no experience writing screensavers.

It might also be possible to disable XBMC's screensaver and use the system one instead? I don't know though.

-j
find quote
ctawn Offline
Senior Member
Posts: 260
Joined: May 2009
Reputation: 0
Post: #112
I just moved most of my userdata folder (database and thumbnails in particular) over from a Mac to an ATV2. I'm trying to sort out a few remaining issues and one of them is with this (excellent) plugin.

So a few questions:

1. how do I purge the data that was carried over from the Mac, including the thumbnails?

2. assuming I manage to add my iPhoto library on my Mac using afp:// (have not yet tried due to #1 above), will importing the library import original size photos or just thumbnails or what? Obviously I'm concerned about storage space on the ATV2 in a way that I wasn't on the Mac!

Thanks.
find quote
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #113
(2012-04-20 22:54)ctawn Wrote:  I just moved most of my userdata folder (database and thumbnails in particular) over from a Mac to an ATV2. I'm trying to sort out a few remaining issues and one of them is with this (excellent) plugin.

So a few questions:

1. how do I purge the data that was carried over from the Mac, including the thumbnails?

From the context menu inside the plugin you can tell it to purge the database and to purge the map files it cached.

Purging the database is really kind of useless in your case though since it gets rewritten entirely whenever you import your library -- the option is really there as kind of a failsafe in case something odd happens to the database that prevents the plugin from working at all.

Purging the map files might be useless as well since you're still pointing to the same iPhoto library (they should all still be valid).

Thumbnails are handled in XBMC itself. Unfortunately there is no easy way currently to tell XBMC to clean out the Thumbnails folder of unused images. Your only easy option is to delete the folder entirely and have XBMC regenerate all of your thumbs currently. I believe there is a utility someone wrote for Windows that will purge unused thumbs from the folder, but I haven't personally used it. That said, since the iPhoto library itself hasn't changed, the thumbnails it cached should still be valid anyway.

My plugin doesn't store any of your images locally. When you select Import Library it is actually just scanning your AlbumData.xml file and storing information and references to your actual images in a local database. My current database is 1.4MB and I've got 4000+ photos.

In short: you don't really have to do anything for my plugin when you move it to another machine. You can even omit copying the files from addon_data and it will just reconstruct it all the next time you select Import Library.

(2012-04-20 22:54)ctawn Wrote:  2. assuming I manage to add my iPhoto library on my Mac using afp:// (have not yet tried due to #1 above), will importing the library import original size photos or just thumbnails or what? Obviously I'm concerned about storage space on the ATV2 in a way that I wasn't on the Mac!

As noted above, it doesn't actually copy any of your images to the local filesystem. The thumbnails are cached by XBMC, but there is nothing you need to do within my plugin to save space.

To give you an idea, on my library of 4000+ photos, my plugin utilizes a total of 1.5MB of space on the local filesystem.

-j
find quote
ctawn Offline
Senior Member
Posts: 260
Joined: May 2009
Reputation: 0
Post: #114
Thanks for the info. Actually the Mac I will link over afp:// is a different Mac than the one that originally ran XBMC, and thus has a different iPhoto library. But I'll try what you suggest. Thanks.
find quote
moneymaker Offline
Fan
Posts: 430
Joined: Feb 2012
Reputation: 22
Location: EU
Post: #115
What skin is that on the first post he use and shown his iphoto plugin?

[Image: logo.png]
// downloads // latest projects / github / backups / repository
find quote
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #116
The skin in the screenshots is Metropolis.
find quote
D_CPU350 Offline
Junior Member
Posts: 1
Joined: Dec 2009
Reputation: 0
Post: #117
I have error when updating library:
Code:
13:34:48 T:2628717376   DEBUG: Instantiating addon using automatically obtained id of "plugin.image.iphoto" dependent on version 2.0 of the xbmc.python api
13:34:48 T:2628717376  NOTICE: {'action': 'rescan'}
13:34:48 T:2628717376   DEBUG: CFileSMB::Open - opened Pictures/iPhoto Library/AlbumData.xml, fd=10000
13:34:48 T:2628717376   ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
13:34:48 T:2628717376   ERROR: Read - Error( -1, 22, Invalid argument )
13:34:48 T:2628717376   DEBUG: CFileSMB::Close closing fd 10000
13:34:48 T:2628717376   DEBUG: unable to load /home/dima/.xbmc/addons/plugin.image.iphoto/resources/language/Russian/strings.xml: Failed to open file at line 0
find quote
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #118
It looks like it's having trouble reading from the SMB share. You could try connecting to the share in your OS and see if you can open the AlbumData.xml file by hand. If it works, it may be a quirk with XBMC's SMB functionality, but it's not likely that my plugin is the culprit here.
find quote
MarceFX Offline
Junior Member
Posts: 31
Joined: Jun 2012
Reputation: 0
Post: #119
Hi!

Thanks for such a wonderful plugin ;-) I'm having problems running it on my Macbook Pro (OS X Lion). The plugin seems to be working. I successfully imported the library, but every time I open a pic I get a black screen, nothing loads. I get all the file names, proper folder structure and all that, but pictures won't open. Any ideas?

Thanks
(This post was last modified: 2012-06-22 12:21 by MarceFX.)
find quote
jingai Offline
Skilled Skinner
Posts: 1,021
Joined: Mar 2010
Reputation: 11
Post: #120
(2012-06-22 12:20)MarceFX Wrote:  I'm having problems running it on my Macbook Pro (OS X Lion). The plugin seems to be working. I successfully imported the library, but every time I open a pic I get a black screen, nothing loads. I get all the file names, proper folder structure and all that, but pictures won't open. Any ideas?

Please enable debugging in XBMC and re-import the library (Update Library) from within my add-on. Navigate to one of the pictures that won't load and then send me the resulting xbmc.log file.
find quote
Post Reply