Pictures database and library mode; scan EXIF and IPTC metadata tags into a SQL db

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
fmronan Offline
Fan
Posts: 586
Joined: Dec 2010
Reputation: 4
Post: #311
You can install by repo passion in xbmc or with the zip file too
http://passion-xbmc.org/addons/?Page=Vie...e.mypicsdb
Is it possible to add property for recently or random pictures in the home, like recently movie or other media?
(This post was last modified: 2012-04-05 19:11 by fmronan.)
find
mgmartin Offline
Junior Member
Posts: 4
Joined: Mar 2012
Reputation: 0
Post: #312
Thanks for putting this addon together, it is filling a distinct hole in XBMC's capabilities.

I've noticed that the browse_folder function scanpath.py tends to bomb out at the stat functions if it encounters any files or folders without read permissions.
This is probably OS-specific and partially a user issue...
HOWEVER - In the name of bulletproofing, would it be possible to insert some exception trapping per-file or per-folder ?
I crudely hacked some try/except blocks around the code to enable it to scan my pics, but this might be handled more elegantly by the original authors.

Thanks again !
find
Xycl Offline
Senior Member
Posts: 248
Joined: Feb 2012
Reputation: 6
Location: Germany
Post: #313
(2012-04-05 18:53)fiveisalive Wrote:  Update: I took the liberty of adding the link to: http://www.xycl.de/de/xbmc/addons-und-programme.html to the first column, now the two Xycl repos should show up in the Repositories Installer Add-on.

Thanks.
It works.
(2012-04-05 19:09)fmronan Wrote:  Is it possible to add property for recently or random pictures in the home, like recently movie or other media?

You want to go directly into "Uploads from last n days" or "The n latest pictures"?
PHP Code:
ActivateWindow(Pictures,"plugin://plugin.image.mypicsdb/?method='recentpicsdb'&viewmode='view'&action='showpics'",return)
or
ActivateWindow(Pictures,"plugin://plugin.image.mypicsdb/?method='lastpicsshooted'&viewmode='view'&action='showpics'",return) 

Main page: https://github.com/Xycl
Repository: Xycl Repository
How to submit a log file: XBMC-Wiki
(This post was last modified: 2012-04-06 20:06 by Xycl.)
find
fmronan Offline
Fan
Posts: 586
Joined: Dec 2010
Reputation: 4
Post: #314
good questionFrown
the last added , i suppose
find
Xycl Offline
Senior Member
Posts: 248
Joined: Feb 2012
Reputation: 6
Location: Germany
Post: #315
See my updated reply.

Main page: https://github.com/Xycl
Repository: Xycl Repository
How to submit a log file: XBMC-Wiki
find
Xycl Offline
Senior Member
Posts: 248
Joined: Feb 2012
Reputation: 6
Location: Germany
Post: #316
(2012-04-06 05:41)mgmartin Wrote:  I've noticed that the browse_folder function scanpath.py tends to bomb out at the stat functions if it encounters any files or folders without read permissions.
This is probably OS-specific and partially a user issue...
HOWEVER - In the name of bulletproofing, would it be possible to insert some exception trapping per-file or per-folder ?
I crudely hacked some try/except blocks around the code to enable it to scan my pics, but this might be handled more elegantly by the original authors.

Thanks again !

Please test it with new version 0.6.6.
File permission errors are now handled when using Windows.

Main page: https://github.com/Xycl
Repository: Xycl Repository
How to submit a log file: XBMC-Wiki
find
mikebzh44 Offline
Posting Freak
Posts: 1,067
Joined: Nov 2011
Reputation: 19
Location: Nantes - France
Post: #317
(2012-04-05 19:09)fmronan Wrote:  You can install by repo passion in xbmc or with the zip file too
http://passion-xbmc.org/addons/?Page=Vie...e.mypicsdb
Is it possible to add property for recently or random pictures in the home, like recently movie or other media?
Hello Xycl.

Fmronan, Glass skinner, is looking for a special feature of your script.

Your script is able to return "Recently added" and "Random" images but not as Home properties.

Is it possible to you to set Home properties so skinners could populate widgets, as for "Recently added" and " Random" movies, tvshows, albums ?

Sorry for my english, but, you know, I'm French so ...

find
Xycl Offline
Senior Member
Posts: 248
Joined: Feb 2012
Reputation: 6
Location: Germany
Post: #318
(2012-04-07 18:40)mikebzh44 Wrote:  
(2012-04-05 19:09)fmronan Wrote:  You can install by repo passion in xbmc or with the zip file too
http://passion-xbmc.org/addons/?Page=Vie...e.mypicsdb
Is it possible to add property for recently or random pictures in the home, like recently movie or other media?
Hello Xycl.

Fmronan, Glass skinner, is looking for a special feature of your script.

Your script is able to return "Recently added" and "Random" images but not as Home properties.

Is it possible to you to set Home properties so skinners could populate widgets, as for "Recently added" and " Random" movies, tvshows, albums ?
Sorry, but what are home properties?
Can you give me an example? Best would be the xml file (and lines) from confluence skin where the recently added videos are shown because I don't know much about skins (only enough to add some home submenus for playlists or sources).
With help of an example it should'nt be to complicated for me to give fmronan the needed pictures.

Update: I can write for him a function like 'RecentlyAdded(n)' which gives back the picture path of the n'th recently added picture.

Main page: https://github.com/Xycl
Repository: Xycl Repository
How to submit a log file: XBMC-Wiki
(This post was last modified: 2012-04-08 15:35 by Xycl.)
find
mikebzh44 Offline
Posting Freak
Posts: 1,067
Joined: Nov 2011
Reputation: 19
Location: Nantes - France
Post: #319
How I set Home property with RandomAndLastItems script :

WINDOW = xbmcgui.Window( 10000 )
_setProperty( "PictureDB.%d.Path" % ( _count ), path )

So skinners can use PictureDB.1.Path to PictureDB.10.Path for example.

Sorry for my english, but, you know, I'm French so ...

find
mgmartin Offline
Junior Member
Posts: 4
Joined: Mar 2012
Reputation: 0
Post: #320
Still seems to have issues under Linux.
I have to trap exceptcions in the picentry={...stat...} code to successfully scan the folders.

(2012-04-07 16:50)Xycl Wrote:  
(2012-04-06 05:41)mgmartin Wrote:  I've noticed that the browse_folder function scanpath.py tends to bomb out at the stat functions if it encounters any files or folders without read permissions.
This is probably OS-specific and partially a user issue...
HOWEVER - In the name of bulletproofing, would it be possible to insert some exception trapping per-file or per-folder ?
I crudely hacked some try/except blocks around the code to enable it to scan my pics, but this might be handled more elegantly by the original authors.

Thanks again !

Please test it with new version 0.6.6.
File permission errors are now handled when using Windows.
find
Thread Closed