2010-11-07, 10:06
solexalex Wrote:I added in the code the ability to exclude a path from the scan.
That is great news. I'm waiting till the next beta version!
solexalex Wrote:I added in the code the ability to exclude a path from the scan.
listext = [".JPG",".TIF",".PNG",".GIF",".BMP",".JPEG"]
solexalex Wrote:Now I sorted a little bit the root paths to scan for pictures, then the excluded paths which should not be scanned.
It is much better.
I added a context menu that enables, from the 'sort by folder' view, to add directly from here a folder in the exclude list
22:09:50 T:140404287993616 M:2880163840 NOTICE: MyPicsDB >> SQL > SELECT "Image Rating" FROM files WHERE strPath="/home/myth/media/Pictures/Lumix-import-old/108_PANA"
AND strFilename="P1080365.JPG";
22:09:50 T:140404287993616 M:2880163840 NOTICE: rating
22:09:50 T:140404287993616 M:2880163840 NOTICE: Image Rating
22:09:50 T:140404287993616 M:2880163840 INFO: -->Python script returned the following error<--
22:09:50 T:140404287993616 M:2880163840 ERROR: Error Type: exceptions.ValueError
22:09:50 T:140404287993616 M:2880163840 ERROR: Error Contents: invalid literal for int(): Image Rating
22:09:50 T:140404287993616 M:2880163840 ERROR: Traceback (most recent call last):
File "/home/myth/.xbmc/addons/plugin.image.mypicsdb/default.py", line 1027, in ?
m.show_pics()
File "/home/myth/.xbmc/addons/plugin.image.mypicsdb/default.py", line 980, in show_pics
fanart = xbmcplugin.getSetting(int(sys.argv[1]),'usepicasfanart')=='true' and join(path,filename) or picfanart
File "/home/myth/.xbmc/addons/plugin.image.mypicsdb/default.py", line 160, in addPic
fiveisalive Wrote:There appears to be a problem with the getting of ratings from pics that don't have ratings, here's the traceback (this is with SVN r143):
if rating: prefix = prefix + "[color=C0FFFF00]"+("*"*int(rating))+"[/color][color=C0C0C0C0]"+("*"*(5-int(rating)))+"[/color]"
if rating:
print "RATING :"
print rating
print type(rating)
print "----"
prefix = prefix + "[color=C0FFFF00]"+("*"*int(rating))+"[/color][color=C0C0C0C0]"+("*"*(5-int(rating)))+"[/color]"
fiveisalive Wrote:Another small feature request: in the standard "Pictures" in XBMC, when you are viewing a picture fullscreen, you can click the context menu and it will display the EXIF data on the image (e.g. time and date, and camera etc.) could you also enable this for full screen within the plugin?I don't know which skin you are using, but the contextmenu you are talking about comes from the skin.