[Release] flickr plugin in svn repo

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dmdpa Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Question  Basic public usage OK - cannot authenticate
Post: #16
Hi,

Basics of plugin works great and love the quality of the pictures. But cannot authenticate as several others have reported.

(Running flickr plugin 1.5.3-r and XBMC r20677 on AppleTV)

Here's what I've been doing:
  • Grabbed latest flickr plugin from SVN (tried both manual and SVN repo plugin install)
  • Installed
  • Got prompted for authentication upon first run (or upon resetting "runonce")
  • Tried both username and full Yahoo email
  • Got prompted with a dialog box that was missing prompt text and only had 2 buttons "YES | NO" (tried both answers)
  • Checked my xbmc.log - no URL for authentication
  • Checked flickr.com and cannot seem to see any pending authorizations

Here's what my XBMC log contains:
Code:
13:04:05 T:53218304 M: 14196736  NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
13:04:05 T:53218304 M: 14188544  NOTICE:      ** Required XBMC Revision: r19001 **
13:04:05 T:53218304 M: 14188544  NOTICE:      ** Found XBMC Revision: r20677 [Compatible] **
13:05:12 T:51454464 M:  7266304  NOTICE: -->Python Interpreter Initialized<--

QUESTIONS:
  • What else could I try?
  • Any way to run authentication challenge from the command-line in a terminal window?
  • shouldn't I see the results of my selection upon first run of the plugin in userdata/plugin_data/pictures/flickr/settings.xml? (only 2 entries in this file are "runonce" and "presets_users")

Thanks and keep up the good work!

Confused
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #17
did it bring up a browser window? if apple tv does not have a browser. check your log for an http address to visit to authorize. if ones not in trhere. i'll upload a version that does that.

once you visit the website and ok the plugin. then press yes in xbmc.

edit i see you don't have a url. update in a few minutes.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #18
Quote:
[flickr]

-changed: version -> 1.5.4
-changed: spam auth url to log for all platforms
-changed: include .py not .pyo for client api

now do what i said look for ""XBMC Flicker authorization url: http://blah/blah"

make sure you copy it all, it might be long

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
dmdpa Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #19
thanks for the reply. The Apple TV doesn't have a browser so I was looking in the log file. However this URL never shows up (see below)...

[CODE]
-bash-2.05b$ grep -i flickr *.log
xbmc.log:16:33:11 T:44082176 M: 29782016 NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
xbmc.log:17:00:57 T:46952960 M: 40525824 NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
xbmc.log:17:04:25 T:46810112 M: 33275904 NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
xbmc.log:17:08:51 T:47147520 M: 23846912 NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
xbmc.log:17:19:05 T:44668416 M: 21917696 NOTICE: File "/Users/frontrow/Library/Application Support/XBMC/scripts/My Scripts/Flickr/default.py", line 56, in ?
xbmc.log:17:19:05 T:44668416 M: 21917696 NOTICE: File "/Users/frontrow/Library/Application Support/XBMC/scripts/My Scripts/Flickr\include/imageviewer.py", line 12, in ?
xbmc.old.log:13:04:05 T:53218304 M: 14196736 NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
[CODE]

Any idea?

Thanks!
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #20
ah yeah, that's an old version 1.5.3.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
dmdpa Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #21
In case that helps, here's what is captured in the log with XBMC in debug mode during an authentication session with the flickr:

Code:
18:43:30 T:47691776 M: 48877568  NOTICE: -->Python Interpreter Initialized<--
18:43:30 T:47691776 M: 48885760   DEBUG: Process - The source file to load is special://home/plugins/pictures/flickr/default.py
18:43:30 T:47691776 M: 48885760   DEBUG: Process - Setting the Python path to /Users/frontrow/Library/Application Support/XBMC/plugins/pictures/flickr:/mnt/Scra
tch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/Lib:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/sys
tem/python/lib/python24.zip:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/:/mnt/Scratch/Users/frontrow/A
pplications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-darwin:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/s
ystem/python/lib/python2.4/plat-mac:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac/lib-scriptpac
kages:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-tk:/mnt/Scratch/Users/frontrow/Applications/XBMC
.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-dynload
18:43:30 T:47691776 M: 48885760   DEBUG: Process - Entering source directory /Users/frontrow/Library/Application Support/XBMC/plugins/pictures/flickr
18:43:30 T:47691776 M: 48873472  NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
18:43:30 T:47691776 M: 48873472  NOTICE:      ** Required XBMC Revision: r19001 **
18:43:30 T:47691776 M: 48873472  NOTICE:      ** Found XBMC Revision: r26018 [Compatible] **
18:43:31 T:2684407808 M: 48390144    INFO: Loading skin file: DialogProgress.xml
18:43:31 T:2684407808 M: 48648192   DEBUG: Load DialogProgress.xml: 79.56ms
18:43:31 T:2684407808 M: 48656384   DEBUG: ------ Window Init (DialogProgress.xml) ------
18:43:31 T:2684407808 M: 48623616   DEBUG: Alloc resources: 0.81ms (0.00 ms skin load)
18:43:31 T:2684407808 M: 48615424   DEBUG: ------ Window Init (DialogPluginSettings.xml) ------
18:43:31 T:2684407808 M: 48615424    INFO: Loading skin file: DialogPluginSettings.xml
18:43:31 T:2684407808 M: 48336896   DEBUG: Load DialogPluginSettings.xml: 11.16ms
18:43:31 T:2684407808 M: 48267264   DEBUG: Alloc resources: 13.47ms (11.44 ms skin load)
18:43:34 T:2684407808 M: 47337472    INFO: Loading skin file: DialogKeyboard.xml
18:43:34 T:2684407808 M: 47304704   DEBUG: Load DialogKeyboard.xml: 63.47ms
18:43:34 T:2684407808 M: 47304704   DEBUG: ------ Window Init (DialogKeyboard.xml) ------
18:43:34 T:2684407808 M: 47165440   DEBUG: Alloc resources: 17.94ms (0.00 ms skin load)
18:43:50 T:2684407808 M: 47546368    INFO: CheckIdle - Closing session to http://www.google.com (easy=0xab72000, multi=0x0)
18:43:50 T:2684407808 M: 47513600    INFO: CheckIdle - Closing session to http://feeds.feedburner.com (easy=0xb7d1000, multi=0xbb90a90)
18:43:51 T:2684407808 M: 47513600   DEBUG: ------ Window Deinit (DialogKeyboard.xml) ------
18:43:53 T:45246464 M: 47800320   DEBUG: Thread 45246464 terminating (autodelete)
18:43:53 T:42990592 M: 47800320   DEBUG: Thread 42990592 terminating (autodelete)
18:43:53 T:42667520 M: 47845376   DEBUG: Thread 42667520 terminating (autodelete)
18:44:06 T:2684407808 M: 47828992   DEBUG: RunScriptWithParams - calling plugin special://home/plugins/pictures/flickr/default.py('plugin://pictures/flickr/','-
1','?authorize=True')
18:44:06 T:2684407808 M: 47828992    INFO: initializing python engine.
18:44:06 T:2684407808 M: 47828992   DEBUG: new python thread created. id=29
18:44:06 T:42990592 M: 47824896   DEBUG: thread start, auto delete: 0
18:44:06 T:42990592 M: 47824896   DEBUG: Python thread: start processing
18:44:06 T:2684407808 M: 47820800   DEBUG: ------ Window Deinit (DialogPluginSettings.xml) ------
18:44:07 T:47691776 M: 47620096    INFO: Scriptresult: Success
18:44:07 T:2684407808 M: 47620096   DEBUG: WaitOnScriptResult- plugin returned successfully
18:44:07 T:2684407808 M: 47620096   DEBUG: Saving fileitems [plugin://pictures/flickr/]
18:44:07 T:2684407808 M: 47620096   DEBUG:   -- items: 5, sort method: 0, ascending: false
18:44:07 T:46967296 M: 47632384   DEBUG: thread start, auto delete: 0
18:44:07 T:46967296 M: 47624192   DEBUG: Thread 46967296 terminating
18:44:07 T:47734784 M: 47669248   DEBUG: thread start, auto delete: 0
18:44:07 T:47734784 M: 47669248   DEBUG: Thread 47734784 terminating
18:44:07 T:42990592 M: 47669248  NOTICE: -->Python Interpreter Initialized<--
18:44:07 T:42990592 M: 47669248   DEBUG: Process - The source file to load is special://home/plugins/pictures/flickr/default.py
18:44:07 T:42990592 M: 47669248   DEBUG: Process - Setting the Python path to /Users/frontrow/Library/Application Support/XBMC/plugins/pictures/flickr:/mnt/Scra
tch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/Lib:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/sys
tem/python/lib/python24.zip:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/:/mnt/Scratch/Users/frontrow/A
pplications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-darwin:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/s
ystem/python/lib/python2.4/plat-mac:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/plat-mac/lib-scriptpac
kages:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-tk:/mnt/Scratch/Users/frontrow/Applications/XBMC
.app/Contents/Resources/XBMC/system/python/lib/python2.4/lib-dynload
18:44:07 T:42990592 M: 47669248   DEBUG: Process - Entering source directory /Users/frontrow/Library/Application Support/XBMC/plugins/pictures/flickr
18:44:07 T:2684407808 M: 45481984   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
18:44:08 T:47691776 M: 46444544    INFO: Python script stopped
18:44:08 T:47691776 M: 46460928   DEBUG: Thread 47691776 terminating
18:44:08 T:2684407808 M: 46526464   DEBUG: python thread 28 destructed
18:44:13 T:42990592 M: 37998592    INFO: Loading skin file: DialogYesNo.xml
18:44:13 T:42990592 M: 38133760   DEBUG: Load DialogYesNo.xml: 87.12ms
18:44:13 T:2684407808 M: 38133760   DEBUG: ------ Window Init (DialogYesNo.xml) ------
18:44:13 T:2684407808 M: 38117376   DEBUG: Alloc resources: 1.13ms (0.00 ms skin load)
18:45:07 T:43152384 M: 36741120  NOTICE: ES: Client  from 127.0.0.1 timed out
18:50:27 T:2684407808 M: 36540416   DEBUG: ------ Window Deinit (DialogYesNo.xml) ------
18:50:27 T:42990592 M: 37642240    INFO: Scriptresult: Success
18:50:28 T:42990592 M: 37642240    INFO: Python script stopped
18:50:28 T:42990592 M: 37662720   DEBUG: Thread 42990592 terminating
18:50:28 T:2684407808 M: 37728256   DEBUG: python thread 29 destructed
18:50:28 T:2684407808 M: 37728256    INFO: Python, unloading python24.dll because no scripts are running anymore
18:50:28 T:2684407808 M: 37728256   DEBUG: UnloadExtensionLibs, clearing python extension libraries
18:50:28 T:2684407808 M: 37728256   DEBUG: Unloading: python24-x86-osx.so
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #22
first don't post logs here, use pastebin. i'm sure that's in a sticky somewhere.

i already answered you.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
dmdpa Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #23
Nuka1195 Wrote:ah yeah, that's an old version 1.5.3.

I just got this from SVN earlier today Smile
Is there a newer version available anywhere online?
Thanks again!
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #24
ok, stop posting now and read. you will get no further help here.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
dmdpa Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #25
Our posts crossed in the ether.

Thanks for 1.5.4 - that solved the authentication problem: I can see the auth URL in the log and successfully used it. This gave me my favorites and contacts. However, I can only access *public* content: public photos from my contacts, public favorites - and not my private sets, or private content from my contacts. Not sure if this is an expected limitation or not but thought I would report it either way...
find quote
marathont Offline
Junior Member
Posts: 42
Joined: Jan 2006
Reputation: 0
Post: #26
I am trying to get authorization to work in xbmclive 9.11. I have downloaded version 1.5.4. I ger the flickr api url from the log and paste into my browser and it authenticates succesfully.

When i try to open the filckr plugin, I get 'UserI id is invalid please verify your settings'.

Edit: It works now - I just changed my username from xxxx@yahoo.com to xxxx.
(This post was last modified: 2009-12-30 15:31 by marathont.)
find quote
ingouk Offline
Junior Member
Posts: 2
Joined: Dec 2009
Reputation: 0
Post: #27
i got the authorization working via the URL in the log file. but i can't access any photosets. i got several on flickr, but when i select "My Photosets" in XBMC it starts looking for them but then goes back to the screen where i can select "My Photosets"
Logfile snippet is:

http://www.pastebin.org/70020

cheers

Ingo
find quote
Post Reply