2015-01-15, 22:35
Argh, 15 years of software development but unable to fix a simple python script...
Are you using Windows? The changes should work with other OS'es but I've only tried it with Windows.
I'll first try define the problem with my bad english. Helix is much more picky about distinguishing paths and files. In Gotham the Script could check if a path exists by using exists("C:\\test") which returned true if there is a directory named test on drive C. Helix only returns true if there is a file called test and false if it's a directory. So the existence of a directory must be checked with exists("C:\\test\\") - mind the trailing backslashes.
My fixes correct these existence checks for the paths used in the script. That's all. There is definately no problem with the database structure I think. I've tried the script on a fresh install of Kodi with 10 albums of different artists.
The Scripts problem is the checking of the artists and albums paths and copying the data to the destination.
So if the structure is like mine: M:\Albums\Avicii\True the db is updated wrong because the script thinks the folder is not present.
Could anyone post a log of what's going on?
Would you mind deleting the cdartmanager database and rerun the script? I'm sure it's damaged by a run of the old version. In Windows it's located here: "%APPDATA%\Kodi\userdata\addon_data\script.cdartmanager\l_cdart.db" only rename the file l_cdart.db please.
Are you using Windows? The changes should work with other OS'es but I've only tried it with Windows.
I'll first try define the problem with my bad english. Helix is much more picky about distinguishing paths and files. In Gotham the Script could check if a path exists by using exists("C:\\test") which returned true if there is a directory named test on drive C. Helix only returns true if there is a file called test and false if it's a directory. So the existence of a directory must be checked with exists("C:\\test\\") - mind the trailing backslashes.
My fixes correct these existence checks for the paths used in the script. That's all. There is definately no problem with the database structure I think. I've tried the script on a fresh install of Kodi with 10 albums of different artists.
The Scripts problem is the checking of the artists and albums paths and copying the data to the destination.
So if the structure is like mine: M:\Albums\Avicii\True the db is updated wrong because the script thinks the folder is not present.
Could anyone post a log of what's going on?
Would you mind deleting the cdartmanager database and rerun the script? I'm sure it's damaged by a run of the old version. In Windows it's located here: "%APPDATA%\Kodi\userdata\addon_data\script.cdartmanager\l_cdart.db" only rename the file l_cdart.db please.