2013-07-05, 13:37
Yes...so cool. It work perfectly.
Thank a lot
Thank a lot
(2013-08-11, 20:42)Zeddd Wrote: The built-in os.path functions will return creation and modification times.
os.path.getmtime(path) #modification time
os.path.getctime(path) #creation time
os.path.getatime(path) #time of last access
I've partially implemented this on my local machine. So far it's working well but still have a long way to go for full implementation.
(2013-08-11, 20:42)Zeddd Wrote: If you dont mind, i have another feature request.
Please add strPath and ftype as tags. You're currently excluding both tags in the mypicsdb.py tags_insert function. I can only speak for myself but I have to believe there are many others out there that find tagging pictures to be a painful exercise and instead store my pictures based on folder hierarchy.
For example:
Pictures\
Pictures\destinations\
Pictures\destinations\Argentina\
Pictures\destinations\Argentina\Buenos Aires
Pictures\destinations\Argentina\Iguazu
Pictures\destinations\Europe\
The Browse by Folder selection is meant to address this but is limited by only being able to view one folder at a time, and more importantly, it cannot be used in combination with the Filter Wizard. By adding the strPath tag you'd allow us to search by multiple path locations in addition to other tags as well.
Similarly the ftype tag would allow us to include/exclude movie/picture items from our searches. Both tags would grant us a lot more flexibility in our filter wizard searches.
Really great work by the way. IMO MyPicsDB is arguably the single most useful addon for XBMC and really should be included in xbmc core as the default interface for viewing pictures.
try:
f=open(picfile,"r+b")
except:
f=open(picfile.encode('utf-8'),"r+b")
try:
f=open(picfile,"rb")
except:
f=open(picfile.encode('utf-8'),"rb")
(2013-08-11, 20:42)Zeddd Wrote: The built-in os.path functions will return creation and modification times.
os.path.getmtime(path) #modification time
os.path.getctime(path) #creation time
os.path.getatime(path) #time of last access
(2013-07-30, 04:22)euphos Wrote: What changes need to be made to work with Gotham Dev Builds? A post on the 12.0.0 release suggested you plan on a 13.0 version for it. Just installed the RBEJ Gotham, so now my MyPicsDB doesn't work.
(2013-08-06, 08:08)Zeddd Wrote: Updating the database with a large number of pictures is mind-numbingly slow especially if there are only a handful of pictures that are new or updated. If i'm not mistaken, and please correct me if I am, the script is walking through each path and checking each picture to determine which files are new or have been modified to update or insert into the database.
Have you given much consideration to implementing a "quick scan" feature that uses the parent folder modification date instead? The parent folder modification date should reflect any child files that have been modified. This would quickly rule out unnecessary image scans in folders that have not been modified since the last scan and speed up the scan significantly.
(2013-08-11, 20:42)Zeddd Wrote: ...
Please add strPath and ftype as tags. You're currently excluding both tags in the mypicsdb.py tags_insert function. I can only speak for myself but I have to believe there are many others out there that find tagging pictures to be a painful exercise and instead store my pictures based on folder hierarchy.
For example:
Pictures\
Pictures\destinations\
Pictures\destinations\Argentina\
Pictures\destinations\Argentina\Buenos Aires
Pictures\destinations\Argentina\Iguazu
Pictures\destinations\Europe\
The Browse by Folder selection is meant to address this but is limited by only being able to view one folder at a time, and more importantly, it cannot be used in combination with the Filter Wizard. By adding the strPath tag you'd allow us to search by multiple path locations in addition to other tags as well.
Similarly the ftype tag would allow us to include/exclude movie/picture items from our searches. Both tags would grant us a lot more flexibility in our filter wizard searches.
Really great work by the way. IMO MyPicsDB is arguably the single most useful addon for XBMC and really should be included in xbmc core as the default interface for viewing pictures.