Photos appear multiple times
Bug #276507 reported by
Toby Long-Leather
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moovida |
Invalid
|
Medium
|
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
lp:~tobyll/moovida/media_scanner_ignore_files
Ready for review
for merging
into
lp:moovida/0.5
- No reviews requested
Changed in elisa: | |
assignee: | nobody → tobyll |
status: | New → In Progress |
Changed in elisa: | |
importance: | Undecided → Medium |
milestone: | none → 0.5.x |
tags: | added: media-scanner |
Changed in elisa: | |
milestone: | 0.5.x → none |
To post a comment you must log in.
I have developed a simple patch that ignores certain files/directories based on an entry in elisa.conf
Sample snippet from elisa.conf: tobyll/ Videos' ] tobyll/ Pictures' ] tobyll/ Music'] *\\.jpg$ ', 'Folder\\.jpg$']
[directories]
video = [u'/home/
pictures = [u'/home/
music = [u'/home/
# 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.
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!