Re: [Banshee-List] Can't import files without filename extensions?



Aaron Bockover wrote:
No, Banshee will not import files without an extension. This was done
for performance reasons. We have a large white list of extensions that
"might" be supported. If the extension test passes, then we pass off the
media to TagLib, and then finally import it if the TagLib parse
succeeds.

I am not sure why it would really be a good idea to (attempt) to handle
files without an extension. Is it something that needs to be special
cased because of the Rio Karma? We could add some API that allows
consumers of DatabaseImportManager to either add more extensions to the
white list, turn off that check altogether, or just always try to import
files without an extension.
This whitelist approach is ambigous because there is no forced relationship between extension and content.
For the sake of performance I'd say keep the implemenation but:
- make the whitelist accessible through DatabaseImportManager (for add, delete, disable) - display a summary of all the files that were not imported so the user at least has a chance to see when something went wrong. - add a blacklist for all the files nobody cares about (e.g. "System Volume Information", "thumbs.db")

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]