• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 16
Release flickr Media - flickr media image plugin addon
#1
Thumbs Up 
Image

flickr image plugin currently available from the Addon manager.

Newest bleeding edge updates available on my REPO.
If you need help, ask a question in this thread or join #ruuk on freenode.


Browse your photostream, collections, sets, galleries, tags, places, and favorites. Browse your contacts and their content. Search you or your contacts photostream, or search flickr. View today's interesting photos.

Using the addon with your flickr account requires authentication on a device with a browser. Enable 'Access as user' in the addon settings and follow the instructions from the dialogs when you start the plugin.

Please let me know about bugs, authentication problems, or bad translations.

Enjoy!

ruuk
Reply
#2
Sets and collections crashes the script for me. Any way to get a log?
Reply
#3
The log file shoud be located in:

Windows: C:\Documents and Settings\[username]\Application Data\XBMC\temp\xbmc.log
Vista: C:\Users\[username]\AppData\Roaming\XBMC\temp\xbmc.log
Linux: home/[username]/.xbmc/temp/xbmc.log
OSX: /Users/[username]/Library/Application Support/XBMC/temp/xbmc.log

if you could check that out right after it crashes and find and post the error that would help.
Any information about your setup is usually useful as well (for instance so I don't have to find all the possible locations of the log file location Smile )
Also info about how many sets you have, whether collections crashes when you first select it or when you are somewhere down the tree, etc

Thanks
ruuk
Reply
#4
Fixed a bug with handling non-ascii characters for version 0.9.5
I think that will solve your collections and sets problems, sandos.

ruuk
Reply
#5
Ruuk,

I got through the authentication process once but the script failed after I had entered all the info. Wasn't sure why, uninstalled and re-installed, but now it doesn't even give me the option to go to the web site and authenticate. The relevant portion of the logfile is:

01:26:56 T:3116 M:2845368320 NOTICE: -->Python Interpreter Initialized<--
01:26:59 T:3116 M:2841915392 NOTICE: Mode: None
01:26:59 T:3116 M:2841915392 NOTICE: URL: None
01:26:59 T:3116 M:2841915392 NOTICE: Name: None
01:26:59 T:3116 M:2841915392 NOTICE: Page: 1
01:27:00 T:3116 M:2838863872 ERROR: Error Type: flickrapi.exceptions.FlickrError
01:27:00 T:3116 M:2838863872 ERROR: Error Contents: Error: 1: User not found
01:27:00 T:3116 M:2838863872 ERROR: Traceback (most recent call last):
File "C:\Users\<user name>\AppData\Roaming\XBMC\addons\plugin.image.flickr\default.py", line 600, in ?
doPlugin()
File "C:\Users\<user name>\AppData\Roaming\XBMC\addons\plugin.image.flickr\default.py", line 516, in doPlugin
fsession.authenticate()
File "C:\Users\<user name>\AppData\Roaming\XBMC\addons\plugin.image.flickr\default.py", line 164, in authenticate
user = self.flickr.people_findByUsername(username=self.username)
File "C:\Users\<user name>\AppData\Roaming\XBMC\addons\plugin.image.flickr\flickrapi\__init__.py", line 349, in handler
parse_format=args['format'], **args)
File "C:\Users\<user name>\AppData\Roaming\XBMC\addons\plugin.image.flickr\flickrapi\__init__.py", line 435, in __wrap_in_parser
return parser(self, data)
File "C:\Users\<user name>\AppData\Roaming\XBMC\addons\plugin.image.flickr\flickrapi\__init__.py", line 278, in parse_etree
raise FlickrError(u'Error: %(code)s: %(msg)s' % err.attrib)
FlickrError: Error: 1: User not found
01:27:01 T:1836 M:2838814720 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.image.flickr/
01:27:01 T:1836 M:2838814720 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.flickr/) failed

Thanks for any input on how to resolve this.
Reply
#6
swalter Wrote:Ruuk,

I got through the authentication process once but the script failed after I had entered all the info. Wasn't sure why, uninstalled and re-installed, but now it doesn't even give me the option to go to the web site and authenticate. The relevant portion of the logfile is:

FlickrError: Error: 1: User not found

Thanks for any input on how to resolve this.

It appears that it the username the script has for you is not being found on flickr. Check the addon's settings and see if the username matches exactly your flicker account. Try making the username blank (backspace over all the characters) You don't actually need to set the username yourself. Once you authenticate the script can get it from flickr. That should probably work. But thanks for bringing this up. I should make the script handle this error with a message.
Reply
#7
Posted to repository.

Adds Chinese (Traditional) Language - thanks to Ramius
Reply
#8
Hi Ruuk,
I was trying to install the flickrXBMC on my XBMC Live.
And set the user name in addon's setting.
While trying to open the flickrXBMC from the main menu,
the dialog will ask the email and ID.
The email is the [email protected],right?
And the ID == "the user name in addon's"?

Thank you so much..
Reply
#9
eos33 Wrote:Hi Ruuk,
I was trying to install the flickrXBMC on my XBMC Live.
And set the user name in addon's setting.
While trying to open the flickrXBMC from the main menu,
the dialog will ask the email and ID.
The email is the [email protected],right?
And the ID == "the user name in addon's"?

Thank you so much..

When you first use the addon, it directs you to go to http://2ndmind.com/flickrxbmc (My personal domain)

When you go there it re-directs to flickr authorization which re-directs to a page asking for a secret code and your email address. What email address and code you put here are not important, they are just a means for generating a unique id for the next step.

After you submit the code and email you go back to XBMC and enter the same email and code you entered on the site.

The addon then connects to the 2ndmind site and uses this info to find your access token which allows the addon to access your flickr info.

I hope that made sense Smile

I know this is annoying but you only have to do it the first time (normally).

I am working on a way to do it all within XBMC, but that isn't ready yet.

Hope that helped Smile
Reply
#10
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.
Reply
#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.
Reply
#12
.
Reply
#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\simplejson\__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejson\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\simplejson\decoder.py", line 353, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Reply
#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\simplejson\__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "C:\Users\user\AppData\Roaming\XBMC\addons\script.module.simplejson\lib\simplejson\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\simplejson\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
Reply
#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).
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 16

Logout Mark Read Team Forum Stats Members Help
flickr Media - flickr media image plugin addon6