Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 26
Facebook-Media - Facebook Photo/Video Addon
#16
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 Smile I'll add that in the next update as well.
Reply
#17
ruuk Wrote: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 Smile I'll add that in the next update as well.


I eventually managed to get the friends list: I guess the last "bad" picture (the one causing the plugin to fail) was finally retrieved and the plugin managed to get the remaining ones flawlessly Smile

Once done with that, the plugin went much faster, so I guess that since it's only slow the first time the plugin is setup that's not a great issue! I also noticed the 25 photos limitation by playing with my friends photos: thanks for fixing this!
Reply
#18
The addon asks me to re-authorize and refers me to the address "http://2ndmind.com/facebook..." and I don't really know the rest of it... could someone help and paste the whole address?
Reply
#19
reta Wrote:The addon asks me to re-authorize and refers me to the address "http://2ndmind.com/facebook..." and I don't really know the rest of it... could someone help and paste the whole address?

It's http://2ndmind.com/facebookphotos

I guess your skin uses a larger font Smile

The upcoming version will not require you to leave XBMC for authorization.
Reply
#20
ruuk Wrote:It's http://2ndmind.com/facebookphotos

I guess your skin uses a larger font Smile

The upcoming version will not require you to leave XBMC for authorization.

Hehe thanks, I actually figured it out minutes earlier by looking at the python file, but I actually have two other questions, I would really appreciate it if you could help me out. First of all, all directories open very slowly (10-20 seconds each directory I enter) but maybe that's the way it is for everyone? (I have a 100mbit internet connection, so the bandwith is definetly not the restriction/problem). The other question I have regards opening the actual photos. Nothing happens when I try to open up a photo and after a while I get a error message. Here is the end of my log: http://pastebin.com/v1trUJNS

I really hope you can help me. Thanks in advance!
Reply
#21
reta Wrote:Hehe thanks, I actually figured it out minutes earlier by looking at the python file, but I actually have two other questions, I would really appreciate it if you could help me out. First of all, all directories open very slowly (10-20 seconds each directory I enter) but maybe that's the way it is for everyone? (I have a 100mbit internet connection, so the bandwith is definetly not the restriction/problem). The other question I have regards opening the actual photos. Nothing happens when I try to open up a photo and after a while I get a error message. Here is the end of my log: http://pastebin.com/v1trUJNS

I really hope you can help me. Thanks in advance!

Loading the list of friends or albums will be slow because it needs to download all the thumbnails before display (you can turn off thumbnails for these in the addon settings)
Other slowness is a combination of factors. Part of it is the fact that a plugin has to load the whole script for every directory you show. I could probably optimize that a bit. I'll try to do that for the next release.

I don't know why it's failing to display photos. Your debug log doesn't show any errors. Are the thumbnails displaying? The thing is, once the directory is displayed, XBMC handles the actual fetching of the URL and displaying the image. You say you get an error message. What is the message?

Perhaps you could give me more log info (the bit you sent had very little of the actual facebook activity)

If you want to send the whole log you could send it to [email protected].
Reply
#22
reta Wrote:The other question I have regards opening the actual photos. Nothing happens when I try to open up a photo and after a while I get a error message. Here is the end of my log: http://pastebin.com/v1trUJNS

I really hope you can help me. Thanks in advance!

I was looking through your logs and I found the bit shown below. It looks like for some reason XBMC is unable to find the right kind of player for the image. If you look at the beginning, it identifies the mime type properly as image/jpeg, but then at the end it ends up using the DVDPlayer to play the image, which fails (shown later in the log, not in this snippet)

I'm not sure why this is happening for you, but I don't think it has anything to do with the plugin. The logs don't seem to indicate something external to the plugin and none of the 4000+ users of this addon has reported this problem before. Also, It sounds like you have a somewhat unique setup Smile

Hopefully I've been somewhat helpful. Let me know if you still have questions.

Also, if anyone else knows what is going on here please feel free to chime in Smile
Code:
#
23:52:15 T:3952 M:922587136   DEBUG: CFileCurl::GetMimeType - http://sphotos.ak.fbcdn.net/photos-ak-snc1/v1967/183/68/619811332/n619811332_1673506_3270.jpg -> image/jpeg
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers(http://sphotos.ak.fbcdn.net/photos-ak-snc1/v1967/183/68/619811332/n619811332_1673506_3270.jpg)
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: flv/aacp/sdp
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
#
23:52:15 T:3952 M:922505216   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
#
23:52:15 T:3952 M:922243072  NOTICE: DVDPlayer: Opening: http://sphotos.ak.fbcdn.net/photos-ak-snc1/v1967/183/68/619811332/n619811332_1673506_3270.jpg
Reply
#23
Submitted... may take some time to appear on the repo.

Biggest change is that authorizations are now handled in XBMC via my new Web Viewer addon.
Now displays more than 25 photos (I can't believe I didn't notice this before Smile )
And some speed optimizations.
Reply
#24
I cant enter in my friend
Reply
#25
MarioXD Wrote:I cant enter in my friend

Can you please be more specific. I'm not sure what you are trying to say Smile
Reply
#26
The addon works fine, but when I go to my friends bug me.

Image

sorry my english
Reply
#27
MarioXD Wrote:The addon works fine, but when I go to my friends bug me.
sorry my english

Could you send a copy of the xbmc.log file to to [email protected]

This link will show you where to look for the log file:
http://wiki.xbmc.org/index.php?title=Log_File
Reply
#28
I already sent, thx
Reply
#29
MarioXD Wrote:I already sent, thx

I think I fixed it. Try installing the zip located below:

http://facebookphotos-xbmc.googlecode.co...-0.9.5.zip
Reply
#30
ohh now works, ty Smile
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 26

Logout Mark Read Team Forum Stats Members Help
Facebook-Media - Facebook Photo/Video Addon2