Photos appear multiple times

Bug #276507 reported by Toby Long-Leather
Affects Status Importance Assigned to Milestone
Toby Long-Leather
Nominated for 0.5 by Toby Long-Leather

Bug Description

My camera saves files as a .RAW and .THM file, where the .THM is a thumbnail jpeg. I then develop the .RAW image into a .JPG file. Both the .THM and the .JPG files are scanned by Elisa, and both are displayed in Photos.

Related branches

Revision history for this message
Toby Long-Leather (tobyll) wrote :

I have developed a simple patch that ignores certain files/directories based on an entry in elisa.conf

Sample snippet from elisa.conf:
video = [u'/home/tobyll/Videos']
pictures = [u'/home/tobyll/Pictures']
music = [u'/home/tobyll/Music']
# Any files that match one of the following regexps will be ignored by the media scanner. N.B. ^=start of string, $=end of string
ignore_file_regexps = ['/Raw/', '\\.thm$', 'AlbumArt.*\\.jpg$', 'Folder\\.jpg$']

The ignore_file_regexps will ignore any path that contains a directory called Raw, any file ending in .thm, and also the AlbumArt*.jpg and Folder.jpg files

This is my first time coding in Python, so please check the code carefully!

Revision history for this message
Olivier Tilloy (osomon) wrote :

Looks like your patch is reverted: it is not a patch against upicek (the development version), it is a patch against your work to recover the state of upicek.

I had a quick look at the code, it looks okay, but I cannot test it at the moment. Thanks for your contribution anyway, we'll take the time to try it out.

Changed in elisa:
assignee: nobody → tobyll
status: New → In Progress
Revision history for this message
Toby Long-Leather (tobyll) wrote :

I've added a Bazaar branch with the fix in it, and requested that it be merged. The fix also now contains config_doc and default_config entries, so that automatically generated elisa.conf files will automatically contain the correct entries.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Hi Toby,

To request a merge request please send a bundle to <email address hidden> using bzr:

bzr send --<email address hidden> lp:~elisa-developers/elisa/upicek

Merge requests and code reviews are tracked by our Bundle Buggy (

Changed in elisa:
importance: Undecided → Medium
milestone: none → 0.5.x
tags: added: media-scanner
Olivier Tilloy (osomon)
Changed in elisa:
milestone: 0.5.x → none
Revision history for this message
dino99 (9d9) wrote :

The latest free moovida 1.09 does not get any maintenance since a while. Now is supporting Linux and support can be found at :

Changed in moovida:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers