[Release] flickr plugin in svn repo

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #1
Quote:
[flickr]
-added: Initial commit version 1.0 (authenticating and upload disabled)

initial commit of a flickr plugin.

post any questions here.

upload requires authentication, which is disabled until i can work it out, but still enter your username in settings.

*picasaweb coming soon.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Batemann Offline
Aeon Group
Posts: 323
Joined: Oct 2007
Location: Amsterdam
Post: #2
Nuka1195 Wrote:initial commit of a flickr plugin.

post any questions here.

upload requires authentication, which is disabled until i can work it out, but still enter your username in settings.

*picasaweb coming soon.

Nice effort!!! Any news on updates?
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #3
updated

Quote:
[flickr]

-changed: version -> 1.2
-changed: enabled authentication for future upload capability.
-changed: English language strings
-added: upload path setting (feature not yet enabled)

*for all platforms other than xbox. a web browser will open for you to authorize. for xbox you need to grab q:\xbmc.log, look for "XBMC Flicker authorization url:", then copy that url into a web browser, authenticate, then return to the xbox and authorize. You may also copy your settings.xml from your profile from another platform. the auth token is saved in this file and they are compatable between flickr users.

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: #4
Quote:[SIZE=1]
[flickr]
-changed: version -> 1.3
-changed: save presets in users settings.xml file

[SIZE=1][flickr]
-changed: version -> 1.3.1
-changed: use xbmc.skinHasImage() check for category icons. (They need to be in skinname/media/flickr/, named identical to the method name with a .png ext. eg "flickr_photos_getRecent.png")

[SIZE=1][flickr]
-added: log version and script name

[SIZE=1][flickr]
-changed: version -> 1.3.3
-fixed: unicode issues
-added: fanart support
-changed: english language strings

[SIZE=1][flickr]
-changed: version -> 1.3.4
-fixed: OSX would not launch web browser to authenticate
-added: Authorize action setting if auto ask failed
-deleted: more details setting
-changed: english language strings

[SIZE=1][flickr]
-changed: version -> 1.3.4a
-fixed: OSX now authenticates for real
[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE]

the authorize setting in plugin settings. when you use it. after the web browser comes up. xbmc dialogs will be blank. it's an issue with xbmc. it's being worked on. "Yes" means you authorized the app. no means you did not.

[SIZE=1][SIZE=1][SIZE=1][SIZE=1]
[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE]

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: #5
This change slows down the listing considerably.
Quote:[flickr]

-changed: version -> 1.3.5
-fixed: now finds largest available size for non pro users photos (slower load times, consider adding a setting)

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: #6
choice is always better
Quote:
[flickr]

-changed: version -> 1.3.6
-fixed: added settings to use large thumbnails2(off by default) and setting to view large image if original isn't available(off by default, from previous commit)
-changed: language strings now display more properly their categories

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: #7
.
Quote:
[flickr]
-changed: version -> 1.5
-added: People search
-changed: save presets title, query and thumb.
-fixed: group search did not set title
-changed: english language strings
-added: thumbnails

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
supermario Offline
Junior Member
Posts: 4
Joined: Apr 2009
Reputation: 0
Post: #8
Hello, I'm a new xbmc user on windows. I can't get the flickr plugin to work, it says 'user id invalid'. I changed the settings.xml file, but apparantly i did it wrong. Can you please specify what is the username (does it include the @yahoo.com part ?) and where to put it exactly ? Thanks for this good initiative !
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #9
username can be your email or username, the error isn't very descriptive, but your xbmc is probably too old.

but i can't tell without a debug log.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
supermario Offline
Junior Member
Posts: 4
Joined: Apr 2009
Reputation: 0
Post: #10
Thanks for the quick reply:
- I installed XBMC on windows XP, i took the version from this website (xmbc.org) two days ago (r 8.10 ?).
- I took the flickr plugin last night from the google codes page, http://xbmc-addons.googlecode.com/svn/trunk/plugins/

-> How, or in which file on which place do I set the username ?
-> If a log is still required after this update, how do I get a debug log ? Is it automatically stored somewhere ?
find quote
PantsOnFire Offline
Fan
Posts: 620
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: 20
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.2
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
Post Reply