2008-11-04 17:24:17 |
Olivier Tilloy |
description |
Because of a missing initial call to _reset_autocommit_delay in database_parser.py, the commit-every-10-seconds loop is never initiated unless the parser first finds 50 files and commits. This means that media libraries less than 50 files never get committed.
Patch attached. |
Because of a missing initial call to _reset_autocommit_delay in database_parser.py, the commit-every-10-seconds loop is never initiated unless the parser first finds 50 files and commits. This means that media libraries less than 50 files never get committed.
Steps to reproduce:
1) Backup and delete your database (~/.elisa-0.5/elisa.db)
2) Make sure all the entries of the [directories] section in your configuration file are empty lists except for one, say music, that should contain a directory that contains less than 50 audio files in total.
3) Start elisa, notice that shortly after the main UI shows up the media scanner reports scanning your music directory
4) Wait for more than 10 sec.
5) Run the following select query on the DB with sqlite:
$ sqlite3 elisa.db 'select * from music_tracks;'
Expected result: all the audio files contained in the folder are listed, they are indexed in the DB.
Current result: nothing is listed, the indexed files are not committed to the DB. |
|