Summary: | amarok sqlite database contains invalid path of the files | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | babil <bil_912> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.4.8 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
babil
2008-03-21 19:52:59 UTC
This is a normal side effect of the "Dynamic Collection" system; you can read up on it in our wiki. Hi, thanks for the quick reply. Is there any way to avoid the initial dot or to stop the "Dynamic Collection". I tried adding the new entry in a new section called [Collection]. But amarok is still creating database entries with the intial dot. This is my amarokrc, I read that up already & did try adding DynamicCollection=false" to "[Collcetion]" section as I mentioned in my previous message. Then recreated the database with a Rescan. Doesn't help. Amarok is still creating database entries with a dot. ======================== [BrowserBar] CurrentPane=CollectionBrowser MagnatuneBrowser=false MediaBrowser=false Width=386 [Collection] DynamicCollection=false [Collection Browser] Category1=2 Category2=1 ======================== Try to delete the db file. Did that. Deleted the following files from $HOME/.kde/share/apps/amarok/ * collection.db * collection_scan.files * collection_scan.log then "Tools > Rescan Collection". Didn't help. Then I don't know. Come to our IRC channel and try talking to maxx_k; he's the author of the dynamic collection feature. Amarok will always put the dot in front of the url. But there are three dcop methods to operate on those urls. They are aprt of the collection interface, and are called deviceid, relativePath, and absolutePath you can convert from amarok's internal representation of urls to an absolute path using absolutePath. to convert an absolute Path to the values that you'll find in the database, call deviceId with the absolute Path as argument, and relativePath with the absolutePath as argument. got it :: deviceid = `dcop amarok collection deviceId '#{file}'`.chomp() dcopfile = `dcop amarok collection absolutePath "#{deviceid}" "#{file}"`.chomp() Thanks a lot Maximilian. |