1 Feb 14:31
Incremental scanning
Ville Ranki <ville.ranki <at> iki.fi>
2012-02-01 13:31:56 GMT
2012-02-01 13:31:56 GMT
Hello, I've been implementing incremental scanning for Amarok. Reason for this is that with large connection on a slow network share (sftp over ADSL for example) scanning can take hours. Also currently all scanned files are lost if scanning is interrupted. Even if it would takes few minutes to scan entire collection, it is good usability to be able to start playing something as soon as Amarok is started. I have modified amarokcollectionscanner to output one XML block for each scanned directory and ScanManager to parse this data on the fly. Everything works well up to this point when i give Directory instances to result processor. In this example i have 2 directories with files in database. (scanner scans first directory) Following errors are outputted for each file: [WARNING] [SqlScanResultProcessor] Found urls entry without directory. A phantom track. Removing "amarok-sqltrackuid://1ca15c03e1fe38d324e128f81afc39a0" amarok: [SqlScanResultProcessor] deleteTrack "amarok-sqltrackuid://1ca15c03e1fe38d324e128f81afc39a0" url id 107(Continue reading)


RSS Feed