Release - flickr Media - flickr media image plugin addon

  Thread Rating:
  • 4 Votes - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
Location: Bremerton, WA USA
Thumbs Up  flickr Media - flickr media image plugin addon
Post: #1
[Image: flickr.jpg]

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.

First time use will require authentication on a machine with a browser or via Web Viewer if installed. Follow the instructions from the dialogs in the plugin.

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

Enjoy!

ruuk

[Image: sig.jpg]
(This post was last modified: 2014-06-03 21:31 by ruuk.)
find quote
sandos Offline
Senior Member
Posts: 100
Joined: May 2008
Reputation: 0
Post: #2
Sets and collections crashes the script for me. Any way to get a log?
find quote
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
Location: Bremerton, WA USA
Post: #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

[Image: sig.jpg]
find quote
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
Location: Bremerton, WA USA
Post: #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

[Image: sig.jpg]
find quote
swalter Offline
Junior Member
Posts: 12
Joined: May 2010
Reputation: 0
Post: #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.
find quote
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
Location: Bremerton, WA USA
Post: #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.

[Image: sig.jpg]
find quote
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
Location: Bremerton, WA USA
Post: #7
Posted to repository.

Adds Chinese (Traditional) Language - thanks to Ramius

[Image: sig.jpg]
find quote
eos33 Offline
Junior Member
Posts: 2
Joined: Dec 2010
Reputation: 0
Post: #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 username@yahoo.com,right?
And the ID == "the user name in addon's"?

Thank you so much..
find quote
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
Location: Bremerton, WA USA
Post: #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 username@yahoo.com,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

[Image: sig.jpg]
find quote
eos33 Offline
Junior Member
Posts: 2
Joined: Dec 2010
Reputation: 0
Post: #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.
find quote
ruuk Offline
Skilled Python Coder
Posts: 1,546
Joined: Aug 2005
Reputation: 182
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.

[Image: sig.jpg]
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: 1,546
Joined: Aug 2005
Reputation: 182
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

[Image: sig.jpg]
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
Post Reply