[digiKam-users] List newly imported images

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] List newly imported images

Paul Marfell-2

Hi

When DigiKam starts it checks for changes to the album contents. Is there a way to then display any new files that were found?

One way I could achieve this is to tag everything currently in DigiKam but the downside of that is that I have yet to go back through everything and give them proper tags and I don't usually tag the RAW file anyway.

Thanks

Paul
--
Reply | Threaded
Open this post in threaded view
|

Re: List newly imported images

woenx
I'd love a section in digikam showing the last 200 or 500 pictures imported
into the library ( https://bugs.kde.org/show_bug.cgi?id=392801 ).

One possible way, if you are familiar with scripting, would be capturing and
parsing the console output of digikam. I have not tried it personally, but I
might do it one of these days, just for fun. Not ideal, but at least you
could have a list of new files.



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: List newly imported images

Paul Marfell
Thanks for the link to the feature request.

If an import timestamp is/was written to the db then a query in descending timestamp order could be used to provide a list based on various conditions.

If the timestamp is added as a new field then at the time of upgrade that day's date could be added and the feature would work from then on.

If the timestamp is already in the db then I would be happy to switch to MySQL and query the db. 

Paul

On Mon, 18 Nov 2019 at 00:23, woenx <[hidden email]> wrote:
I'd love a section in digikam showing the last 200 or 500 pictures imported
into the library ( https://bugs.kde.org/show_bug.cgi?id=392801 ).

One possible way, if you are familiar with scripting, would be capturing and
parsing the console output of digikam. I have not tried it personally, but I
might do it one of these days, just for fun. Not ideal, but at least you
could have a list of new files.



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html


--
Reply | Threaded
Open this post in threaded view
|

Re: List newly imported images

woenx
I checked the databases, but I couldn't find any field where the time of
import was saved.

I wrote a quick script to parse the output and list New and deleted files.
However, deleted files are not shown in the output and only referenced by
their ID in the database file. First of all, you have to capture digikam's
output to a file. I use the "script" command for that:

script -c '~/Applications/digikam-6.4.0-x86-64.appimage' digikamoutput.txt  

Change the path to wherever your digikam program is located. The file
digikamoutput.txt will be written when you quit digikam.

And then use the following script:

#!/bin/bash
echo "New files:"
grep "Adding new item" digikamoutput.txt | while read -r line ; do
   line=`echo "/${line#*/}"`
   line=`echo ${line::-2}`
   echo $line
done

echo -e "\nDeleted files:"
grep "Removed items:" digikamoutput.txt | while read -r line ; do
   line=`echo "${line#*(}"`
   line=`echo "${line%%)*}"`
   echo $line
done

At least it's something :)



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html