2018-08-03, 17:00
I can't mark videos as watched while using Mysql in the YouTube plugin. I've narrowed it down to the actual insert statement which uses a wrong idPath. The record gets created but with the wrong id and it is not marked as watched in the video list.
This is under Leia:
21:20:19.830 T:163752928496 DEBUG: Mysql execute: insert into files (idFile, idPath, strFileName) values(NULL, 524, 'plugin://plugin.video.youtube/play/?video_id=CJSg3IjXa0s')
This is under Krypton
21:47:52.691 T:123145327734784 DEBUG: Mysql execute: insert into files (idFile, idPath, strFileName) values(NULL, 135, 'plugin://plugin.video.youtube/play/?video_id=CJSg3IjXa0s')
These are the two path records in the Leia database which was migrated from the Krypton database, the record with idPath 524 does not exist in the Krypton database and was created as I marked the first item as watched in Leia.
idPath strPath strContent strScraper strHash scanRecursive useFolderNames strSettings noUpdate exclude dateAdded idParentPath
135 plugin://plugin.video.youtube/ NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
524 plugin://plugin.video.youtube/play/ NULL NULL NULL NULL NULL NULL NULL NULL NULL 135
idPath 524 has 135 as parent path but nothing gets a watched symbol in the video list with this path id. When I manually change the field idPath in the files table from 524 to 135 it's marked as watched in the video list.
I've further investigated when this broke. The last nightly where everything worked was kodi-20180325-03d453ae-master. The first nightly where it's broken and which creates the additional path is kodi-20180327-7e5d384c-master.
This is under Leia:
21:20:19.830 T:163752928496 DEBUG: Mysql execute: insert into files (idFile, idPath, strFileName) values(NULL, 524, 'plugin://plugin.video.youtube/play/?video_id=CJSg3IjXa0s')
This is under Krypton
21:47:52.691 T:123145327734784 DEBUG: Mysql execute: insert into files (idFile, idPath, strFileName) values(NULL, 135, 'plugin://plugin.video.youtube/play/?video_id=CJSg3IjXa0s')
These are the two path records in the Leia database which was migrated from the Krypton database, the record with idPath 524 does not exist in the Krypton database and was created as I marked the first item as watched in Leia.
idPath strPath strContent strScraper strHash scanRecursive useFolderNames strSettings noUpdate exclude dateAdded idParentPath
135 plugin://plugin.video.youtube/ NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
524 plugin://plugin.video.youtube/play/ NULL NULL NULL NULL NULL NULL NULL NULL NULL 135
idPath 524 has 135 as parent path but nothing gets a watched symbol in the video list with this path id. When I manually change the field idPath in the files table from 524 to 135 it's marked as watched in the video list.
I've further investigated when this broke. The last nightly where everything worked was kodi-20180325-03d453ae-master. The first nightly where it's broken and which creates the additional path is kodi-20180327-7e5d384c-master.