[RELEASE] flickr Media - flickr media image plugin addon

  Thread Rating:
  • 2 Votes - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ruuk Offline
Skilled Python Coder
Posts: 908
Joined: Aug 2005
Reputation: 133
Location: Bremerton, WA USA
Post: #11
eos33 Wrote:Hi Ruuk,
Appreciate for your reply.
I was linking to http://2ndmind.com/flickrxbmc with my laptop.
As you said,it really did need to submit the secret code and email.
And it shows up "Enter the above email and code into the dialogs on flickrXBMC.
Expires in 1 hour."
So what I need to do is re-enter the email and code into the flickrXBMC of XBMC Live again...right?
I think there is no built-in web browser in XBMC Live.
It might cause the re-direct to http://2ndmind.com/flickrxbmc failed...

Just want to say thank you the addons.
They are really useful and fancy for my families who are not fimiliar with computers.

The addon doesn't open a browser, you need to open a browser yourself on the same or a different computer, and then go to the 2ndmind address.
find quote
alewijnse Offline
Junior Member
Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #12
.
(This post was last modified: 2011-01-03 22:17 by alewijnse.)
find quote
alewijnse Offline
Junior Member
Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #13
Hi Ruuk,

I'm having a similar problem, any idea what it might be? (this is happening for Picasa, Flickr,Facebook etc)

Thanks in advance

20:20:14 T:2124 M:1690230784 NOTICE: -->Python Interpreter Initialized<--
20:20:14 T:2124 M:1689579520 NOTICE: Mode: 1
20:20:14 T:2124 M:1689579520 NOTICE: URL: me
20:20:14 T:2124 M:1689579520 NOTICE: Name: Albums
20:20:15 T:5320 M:1689944064 ERROR: WebServer: Failed to open C:\Program Files\XBMC\addons\webinterface.default\https:\\graph.facebook.com\me\albums
20:20:15 T:2124 M:1689931776 ERROR: Error Type: exceptions.ValueError
20:20:15 T:2124 M:1689931776 ERROR: Error Contents: No JSON object could be decoded
20:20:15 T:2124 M:1689874432 ERROR: Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 344, in ?
doPlugin()
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 332, in doPlugin
fb.ALBUMS(url,name)
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 203, in ALBUMS
albums = self.graph.getConnections(uid,'albums')
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 62, in getConnections
return self.get_connections(id, connection_name, **args)
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\facebook.py", line 101, in get_connections
return self.request(id + "/" + connection_name, args)
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\facebook.py", line 175, in request
response = _parse_json(fileob.read())
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\facebook.py", line 48, in <lambda>
_parse_json = lambda s: simplejson.loads(s)
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejso​n\__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejso​n\decoder.py", line 335, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejso​n\decoder.py", line 353, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
find quote
ruuk Offline
Skilled Python Coder
Posts: 908
Joined: Aug 2005
Reputation: 133
Location: Bremerton, WA USA
Post: #14
alewijnse Wrote:Hi Ruuk,

I'm having a similar problem, any idea what it might be? (this is happening for Picasa, Flickr,Facebook etc)

Thanks in advance

20:20:14 T:2124 M:1690230784 NOTICE: -->Python Interpreter Initialized<--
20:20:14 T:2124 M:1689579520 NOTICE: Mode: 1
20:20:14 T:2124 M:1689579520 NOTICE: URL: me
20:20:14 T:2124 M:1689579520 NOTICE: Name: Albums
20:20:15 T:5320 M:1689944064 ERROR: WebServer: Failed to open C:\Program Files\XBMC\addons\webinterface.default\https:\\graph.facebook.com\me\albums
20:20:15 T:2124 M:1689931776 ERROR: Error Type: exceptions.ValueError
20:20:15 T:2124 M:1689931776 ERROR: Error Contents: No JSON object could be decoded
20:20:15 T:2124 M:1689874432 ERROR: Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 344, in ?
doPlugin()
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 332, in doPlugin
fb.ALBUMS(url,name)
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 203, in ALBUMS
albums = self.graph.getConnections(uid,'albums')
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\default.py", line 62, in getConnections
return self.get_connections(id, connection_name, **args)
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\facebook.py", line 101, in get_connections
return self.request(id + "/" + connection_name, args)
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\facebook.py", line 175, in request
response = _parse_json(fileob.read())
File "C:\Users\user\AppData\Roaming\XBMC\addons\plugin.image.facebook\facebook.py", line 48, in <lambda>
_parse_json = lambda s: simplejson.loads(s)
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejso​n\__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejso​n\decoder.py", line 335, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejso​n\decoder.py", line 353, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

What version are you using. I'm pretty sure it's not the most recent (The line numbers are about 150 lines off). Get the most recent version and try again, and if you have errors send a new log, and then I can try to help Smile
find quote
codex70 Offline
Junior Member
Posts: 48
Joined: Feb 2011
Reputation: 0
Post: #15
I'm having problems trying to set this up under IOS on an ipad. It opens a browser window in xbmc, I try and login, but it never completes the login process. Here are the errors I'm getting:


11:50:37 T:89993216 M:137297920 ERROR: GetDirectory - Error getting plugin://plugin.image.flickr/
11:50:37 T:89993216 M:137297920 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.flickr/) failed
11:50:42 T:805195776 M:138891264 NOTICE: /var/mobile/Library/Preferences/XBMC/addons/script.web.viewer/lib/webviewer/webviewer.py:774: DeprecationWarning: object.__init__() takes no parameters
xbmcgui.WindowXMLDialog.__init__( self, *args, **kwargs )
11:50:43 T:168566784 M:138584064 NOTICE: http://api.flickr.com/services/auth/?per...i_key=....
11:50:45 T:168566784 M:142934016 NOTICE: WEBVIEWER - ERROR READING PAGE::getWebPage (84) - <urlopen error _ssl.c:310: Invalid SSL protocol variant specified.>
11:50:45 T:168566784 M:142934016 NOTICE: WEBVIEWER: URL: http://api.flickr.com/services/auth/?per...pi_key=...
11:50:59 T:805195776 M:142868480 NOTICE: WEBVIEWER: elementSelected() - No Element
11:51:00 T:168566784 M:142848000 NOTICE: http://api.flickr.com/services/auth/?per...pi_key=...
11:51:02 T:168566784 M:142848000 NOTICE: WEBVIEWER - ERROR READING PAGE::getWebPage (84) - <urlopen error _ssl.c:310: Invalid SSL protocol variant specified.>
11:51:02 T:168566784 M:142848000 NOTICE: WEBVIEWER: URL: http://api.flickr.com/services/auth/?per...pi_key=...
11:51:08 T:805195776 M:143446016 ERROR: Error Type: <type 'exceptions.TypeError'>
11:51:08 T:805195776 M:143446016 ERROR: Error Contents: cannot concatenate 'str' and 'NoneType' objects
11:51:08 T:805195776 M:143417344 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/plugin.image.flickr/default.py", line 604, in <module>
doPlugin()
File "/var/mobile/Library/Preferences/XBMC/addons/plugin.image.flickr/default.py", line 520, in doPlugin
if not fsession.authenticate():
File "/var/mobile/Library/Preferences/XBMC/addons/plugin.image.flickr/default.py", line 163, in authenticate
(token, frob) = self.flickr.get_token_part_one(perms='read',auth_callback=self.doTokenDialog) #@UnusedVariable
File "/var/mobile/Library/Preferences/XBMC/addons/plugin.image.flickr/flickrapi/__init__.py", line 752, in get_token_part_one
authenticate(frob, perms)
File "/var/mobile/Library/Preferences/XBMC/addons/plugin.image.flickr/default.py", line 148, in doTokenDialog
print 'AUTH RESPONSE URL: ' + url
TypeError: cannot concatenate 'str' and 'NoneType' objects
11:51:13 T:805195776 M:139165696 NOTICE: -->Python Interpreter Initialized<--
11:51:16 T:805195776 M:137129984 NOTICE: Mode: None
11:51:16 T:805195776 M:137129984 NOTICE: URL: None
11:51:16 T:805195776 M:137129984 NOTICE: Name: None

Edited to remove personal data (I've removed all personal data from the URLs).
(This post was last modified: 2011-03-27 13:28 by codex70.)
find quote
codex70 Offline
Junior Member
Posts: 48
Joined: Feb 2011
Reputation: 0
Post: #16
From what I can tell it's to do with the ssl connection and webviewer on the iOS. Out of interest, do you think it would be possible to copy the authorisation stuff across from an already authorised machine? If so, which files do you think would need copying and where do I put them?
find quote
ruuk Offline
Skilled Python Coder
Posts: 908
Joined: Aug 2005
Reputation: 133
Location: Bremerton, WA USA
Post: #17
codex70 Wrote:From what I can tell it's to do with the ssl connection and webviewer on the iOS. Out of interest, do you think it would be possible to copy the authorisation stuff across from an already authorised machine? If so, which files do you think would need copying and where do I put them?

Sorry about the late reply. That probably could work. In my case on a linux machine, the relevant file is in (Home Folder)/.flickr/0a802e6334304794769996c84c57d187/auth.token

The location would vary by OS, but you would have to copy the directory containing the auth.token file as well, which matches the api key of the flickr plugin.

I probably can't fix the error because I don't have access to an iPad and in any case I've found that generally addon SSL errors are due to the underlying Python implementation for the particular OS and python version that XBMC uses.
find quote
codex70 Offline
Junior Member
Posts: 48
Joined: Feb 2011
Reputation: 0
Post: #18
Thanks for getting back to me. Just updated IPad and went to try installing it all again, but it's showing the add on as broken. Don't know if this is for all builds, or because I'm running a nightly build? Would be good to get it working as it's great on my home PC.
find quote
ruuk Offline
Skilled Python Coder
Posts: 908
Joined: Aug 2005
Reputation: 133
Location: Bremerton, WA USA
Post: #19
codex70 Wrote:Thanks for getting back to me. Just updated IPad and went to try installing it all again, but it's showing the add on as broken. Don't know if this is for all builds, or because I'm running a nightly build? Would be good to get it working as it's great on my home PC.

Not sure what you mean by it's showing the addon as broken. XBMC is showing that?
find quote
codex70 Offline
Junior Member
Posts: 48
Joined: Feb 2011
Reputation: 0
Post: #20
Sorry to take so long getting back to you, I'm in the process of moving house. When I go to picture add ons, both your flickr and Facebook add ons say broken next to them. When I click on the add on itself, the details screen show a status of broken and I'm unable to click on install.

As said, I am running a nightly build on the iPad, so this may be the cause.
find quote
Post Reply