2011-01-06, 18:11
Rainmak3r Wrote:Hi,
I've just started playing with XBMC (a couple of days), and of course also tried the FB plugin. I managed to login and have a look at my photos and videos. It generally seems to work fine, except for the fact that it is VERY slow at times, and sometimes fails.
For instance, when getting the Friends list, it seems to go on forever (taking like 3-4 seconds for every friend, and I have many), and then failing before completion (script failed popup appears). This is what the log tells about it:
Code:IOError: [Errno socket error] The read operation timed out
which suggest that at some point the slow becomes stalled or something alike. Trying again starts from where it left, but so far I haven't been able to complete the friends directory listing, since it always fails after a while, and I gave up.
Is this a known bug or problem? I don't know if it's relevant, but I'm using XBMC on Fedora, which uses Python 2.7: I've already found out how to fix the Youtube plugin which had a problem because of that, and so I was wondering whether it may be the case for the FB plugin as well.
Thanks for the great work you've put in the plugin so far!
I can't really diagnose the problem without more of the log output. My guess is that it times out fetching one of the 'friends' photos. Since you have large number of friends this probably increases the chance of this happening.
Normally with a plugin you can give xbmc the photo and it will handle retrieving it in a nice threaded fashion. For some reason with the friends photos that doesn't work, so to display them I have to fetch them all in order to display the list with the photos.
There is an option in the addon settings that allows you to disable fetching these photos. Try turning that off for now. I will modify the code so that a failure on one photo doesn't prevent it from finishing the list and put that in the next update. It will still be slow getting all the photos, but there is not much I can do about that, but it caches them so it only has to do this once.
I'm finishing up code to allow users to authorize the plugin from within XBMC, and after that is done I will release an update.
Also in looking at the code just now I realized that the plugin is only showing the first 25 photos in each album with no paging options I'll add that in the next update as well.