[Release] flickr plugin in svn repo

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
PantsOnFire Offline
Fan
Posts: 530
Joined: Aug 2008
Reputation: 2
Big Grin    Post: #11
Thanks Nuka for this script.

I've been trying before but always got knocked back by invalid userID error. I googled for "xbmc nightly build" tried that, and it works a treat.

Brilliant image quality I notice. Big Grin

A couple of ideas:
* When you browse your contacts, some of them (in my list anyway) have multiple picture sets, would it be possible to show the individual sets in the list (rather than just show ALL the pictures in a 1-15, 16-26 style directory)?

* Would it be possible to show the contacts UserPhoto? (as in the photo they have chosen for their profile, not a random photo from their set).

Other than that, this is great, and it's what I've been looking for for months!

cheers!
find quote
Glavata Offline
Junior Member
Posts: 1
Joined: Sep 2009
Reputation: 0
Post: #12
Hello,
I'm using the latest Windows XBMC, with the flickr (v1.5.3) plugin that I got from the SVN Repo Installer. I added my username, and authorized the plugin from inside flickr.com. How can I get this plugin to display my own sets now? When I go to Pictures > Picture plugins > flickr all I can see is 'Interestingness', 'Recently Uploaded', 'Search Groups', etc.

I assume it is possible to view my own pictures/sets and that is why I needed to autorhize my username, but I'm still unable to find how?

Thanks!
find quote
Carrot Cruncher Offline
Junior Member
Posts: 36
Joined: Jan 2009
Reputation: 0
Post: #13
hi. i am getting the invalid userid error on my xbox running t3ch_20090927. the authorization process seemed to work. hope someone can help. here is my debug log :

Code:
17:48:46 M: 39436288   DEBUG: CApplication::OnKey: 11 pressed, action is 7
17:48:46 M: 39424000   DEBUG: Clearing cached fileitems [plugin://pictures/flickr/]
17:48:46 M: 40005632   DEBUG: CGUIMediaWindow::GetDirectory (plugin://pictures/flickr/)
17:48:46 M: 40005632   DEBUG:   ParentPath = [plugin://pictures/]
17:48:46 M: 40005632   DEBUG: DIRECTORY::CPluginDirectory::StartScript - URL for plugin settings: flickr/
17:48:46 M: 40005632   DEBUG: DIRECTORY::CPluginDirectory::StartScript - calling plugin special://home/plugins/pictures/flickr/default.py('plugin://pictures/flickr/','0','')
17:48:46 M: 40005632    INFO: initializing python engine.
17:48:46 M: 40005632   DEBUG: LoadLibraryA('python24.dll')
17:48:46 M: 38883328   DEBUG: LoadLibrary('python24.dll') returning: 00CDB580
17:48:46 M: 38883328   DEBUG: dllGetProcAddress(00854BF8(kernel32.dll), 'InterlockedCompareExchange') => 000D6AC4
17:48:46 M: 38617088   DEBUG: GetModuleFileNameA(00000000, 1E102490, 256) => 'xbmc.xbe'
17:48:46 M: 38617088   DEBUG: advapi32.dll fake function RegQueryInfoKeyA called
17:48:46 M: 38617088   DEBUG: advapi32.dll fake function RegQueryInfoKeyA called
17:48:46 M: 38559744   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
17:48:46 M: 38567936   DEBUG: LoadLibraryA('zlib.pyd')
17:48:46 M: 38498304   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
17:48:46 M: 38498304   DEBUG: LoadLibrary('zlib.pyd') returning: 01364D40
17:48:46 M: 38498304   DEBUG: dllGetProcAddress(1E1B0000(zlib.pyd), 'initzlib') => 1E1B2150
17:48:47 M: 37609472  NOTICE: -->Python Initialized<--
17:48:47 M: 37609472   DEBUG: new python thread created. id=29
17:48:47 M: 37085184   DEBUG: DIRECTORY::CPluginDirectory::WaitOnScriptResult - waiting on the flickr plugin...
17:48:47 M: 37085184   DEBUG: Python thread: start processing
17:48:47 M: 37085184   DEBUG: XBPyThread::Process - The source file to load is special://home/plugins/pictures/flickr/default.py
17:48:47 M: 37085184   DEBUG: XBPyThread::Process - Setting the Python path to Q:\plugins\pictures\flickr;Q:\system\python\python24.zlib;Q:\system\python\DLLs;​Q:\system\python\Lib;Q:\system\python\spyce
17:48:47 M: 37085184   DEBUG: XBPyThread::Process - Entering source directory Q:\plugins\pictures\flickr
17:48:47 M: 37085184  NOTICE: [PLUGIN] 'flickr: Version - 1.5.3-r' initialized!
17:48:47 M: 37085184  NOTICE:      ** Required XBMC Revision: r19001 **
17:48:47 M: 37085184  NOTICE:      ** Found XBMC Revision: r23157 [Compatible] **
17:48:47 M: 36261888   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
17:48:47 M: 36261888   DEBUG: LoadLibraryA('_socket.pyd')
17:48:47 M: 36212736   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
17:48:47 M: 36212736   DEBUG: LoadLibrary('_socket.pyd') returning: 012C19F0
17:48:47 M: 36212736   DEBUG: dllGetProcAddress(1E1D0000(_socket.pyd), 'init_socket') => 1E1D4BF0
17:48:47 M: 36188160   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
17:48:47 M: 36188160   DEBUG: LoadLibraryA('_ssl.pyd')
17:48:47 M: 35692544   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
17:48:47 M: 35692544   DEBUG: LoadLibrary('_ssl.pyd') returning: 00D70270
17:48:47 M: 35692544   DEBUG: dllGetProcAddress(02010000(_ssl.pyd), 'init_ssl') => 02011820
17:48:47 M: 35688448   DEBUG: kernel32.dll fake function SetConsoleCtrlHandler called
17:48:47 M: 35659776   DEBUG: dllGetProcAddress(00855480(advapi32.dll), 'CryptAcquireContextA') => 0025B897
17:48:47 M: 35659776   DEBUG: dllGetProcAddress(00855480(advapi32.dll), 'CryptGenRandom') => 00258CB6
17:48:47 M: 35659776   DEBUG: advapi32.dll fake function dllCryptAcquireContext() called
17:48:47 M: 35651584   DEBUG: LoadLibraryA('ws2_32')
17:48:47 M: 35651584   DEBUG: LoadLibrary('ws2_32.dll') returning: 00854BD0
17:48:47 M: 35651584   DEBUG: dllGetProcAddress(00854B90(ws2_32.dll), 'getaddrinfo') => 00258C91
17:48:47 M: 35651584   DEBUG: dllGetProcAddress(00854B90(ws2_32.dll), 'getaddrinfo') => 00258C91
17:48:47 M: 35651584   DEBUG: dllGetProcAddress(00854B90(ws2_32.dll), 'getnameinfo') => 0025838F
17:48:47 M: 35651584   DEBUG: dllGetProcAddress(00854B90(ws2_32.dll), 'freeaddrinfo') => 00257F03
17:48:48 M: 35647488    INFO: Loading skin file: DialogOK.xml
17:48:48 M: 35647488   DEBUG: Load DialogOK.xml: 34.44ms
17:48:48 M: 35635200   DEBUG: ------ Window Init (DialogBusy.xml) ------
17:48:48 M: 35635200    INFO: Loading skin file: DialogBusy.xml
17:48:48 M: 35635200   DEBUG: Load DialogBusy.xml: 28.44ms
17:48:48 M: 35635200   DEBUG: Alloc resources: 28.85ms (28.85 ms skin load, 0.00 ms preload)
17:48:48 M: 35495936    INFO: Loading skin file: DialogProgress.xml
17:48:48 M: 35495936   DEBUG: Load DialogProgress.xml: 4.01ms
17:48:48 M: 35495936   DEBUG: ------ Window Init (DialogProgress.xml) ------
17:48:48 M: 35454976   DEBUG: Alloc resources: 13.68ms (0.00 ms skin load, 0.00 ms preload)
17:48:48 M: 35454976   DEBUG: ------ Window Init (DialogOK.xml) ------
17:48:48 M: 35454976   DEBUG: Alloc resources: 0.10ms (0.00 ms skin load, 0.00 ms preload)
17:48:48 M: 35094528   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
17:48:50 M: 35233792   DEBUG: CApplication::OnKey: 11 pressed, action is 7
17:48:50 M: 35221504   DEBUG: ------ Window Deinit (DialogOK.xml) ------
17:48:50 M: 35221504    INFO: Scriptresult: Success
17:48:50 M: 35233792    INFO: Python script stopped
17:48:50 M: 35758080   DEBUG: python thread 29 destructed
17:48:50 M: 35758080    INFO: Python, unloading python24.dll because no scripts are running anymore
17:48:50 M: 35872768   DEBUG: Q:\system\python\DLLs\_socket.pyd: Detected 1 unloaded dll's
17:48:50 M: 35921920   DEBUG: Q:\system\python\DLLs\_ssl.pyd (base 02010000): Detected memory leaks: 1647 leaks
17:48:50 M: 35921920   DEBUG: leak caller address 0201489B, size    20064, counter 1645
17:48:50 M: 35921920   DEBUG: leak caller address 020148B0, size     4224, counter 2
17:48:50 M: 35921920   DEBUG: _ssl.pyd: Total bytes leaked: 24288
17:48:50 M: 36429824   DEBUG: Q:\system\python\python24.dll (base 1E000000): Detected memory leaks: 264 leaks
17:48:50 M: 38408192   DEBUG: leak caller address 1E046F57, size   171840, counter 55
17:48:50 M: 38408192   DEBUG: leak caller address 1E04FF6B, size     1000, counter 1
17:48:50 M: 38408192   DEBUG: leak caller address 1E058C2C, size      233, counter 1
17:48:50 M: 38408192   DEBUG: leak caller address 1E05CDDB, size    30628, counter 31
17:48:50 M: 38408192   DEBUG: leak caller address 1E05E5EF, size     1976, counter 2
17:48:50 M: 38408192   DEBUG: leak caller address 1E060EA5, size      360, counter 9
17:48:50 M: 38408192   DEBUG: leak caller address 1E060F81, size       80, counter 4
17:48:50 M: 38408192   DEBUG: leak caller address 1E072C5F, size  1835008, counter 7
17:48:50 M: 38408192   DEBUG: leak caller address 1E072CAC, size       64, counter 1
17:48:50 M: 38408192   DEBUG: leak caller address 1E072E88, size    39560, counter 62
17:48:50 M: 38408192   DEBUG: leak caller address 1E072FC9, size     3443, counter 82
17:48:50 M: 38408192   DEBUG: leak caller address 1E091E3F, size      640, counter 3
17:48:50 M: 38408192   DEBUG: leak caller address 1E093BEC, size       72, counter 6
17:48:50 M: 38408192   DEBUG: python24.dll: Total bytes leaked: 2084904
17:48:50 M: 39563264   DEBUG: DIRECTORY::CPluginDirectory::WaitOnScriptResult- plugin returned failure
17:48:50 M: 39563264   ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting plugin://pictures/flickr/
17:48:50 M: 39563264   ERROR: CGUIMediaWindow::GetDirectory(plugin://pictures/flickr/) failed
17:48:50 M: 39563264   DEBUG: CGUIMediaWindow::GetDirectory (plugin://pictures/)
17:48:50 M: 39563264   DEBUG:   ParentPath = []
17:48:50 M: 39563264   DEBUG: CFileItemList::Sort, sorting took 0 millis
17:48:51 M: 39018496   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
find quote
iDVB Offline
Junior Member
Posts: 16
Joined: Feb 2009
Reputation: 0
Post: #14
I'm running the nightly drop of XBMC as of last night (not sure the release #)
on Ubuntu Jaunty.

When I click the Authorize button I just get the message to authorized or cancel....but the browser does not open for me to actually authorize?

=========================
XBMC Frodo v12.0
Win7 x64
Core i5 3.3GHz
GeForce GTX 580
8 GB RAM
=========================
find quote
dan1son Offline
Fan
Posts: 608
Joined: Dec 2008
Reputation: 0
Post: #15
Having similar problem on Apple TV with XBMC 9.11 beta1 and current SVN flickr as of right now. I can't seem to get it to authorize. I'm not sure how it would open a browser window per most flickr apps, maybe there's a way to manually add authorization inside of flickr from another computer that I'm missing?

I can view public sets only if I don't attempt to authorize. Which is on par with the old version of the plugin, but being able to view the private ones would be great.

Any help is appreciated.
find quote
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,914
Joined: Dec 2004
Reputation: 17
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,914
Joined: Dec 2004
Reputation: 17
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,914
Joined: Dec 2004
Reputation: 17
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