You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After exporting my lib, removing the databases, updating to KODI, adding the changes to the database and importing my lib again I found out TVShows wasn't working anymore.
I changed two things in movie.sql and rebuild the db from scratch:
/* View für Episoden(Serien) anpassen, um den watched state zu verteilen EDIT: Removed tvshow.c16 AS strShowPath,*/DROPVIEW IF EXISTS `episodeview`;
CREATEVIEW `episodeview` ASSELECT
episode.*, files.strFileNameAS strFileName, path.strPath AS strPath,
filestate.playCountAS playCount, filestate.lastPlayedAS lastPlayed, files.dateAddedAS dateAdded,
tvshow.c00AS strTitle, tvshow.c14AS strStudio, tvshow.c05AS premiered, tvshow.c13AS mpaa,
bookmark_orig.timeInSecondsAS resumeTimeInSeconds,
bookmark_orig.totalTimeInSecondsAS totalTimeInSeconds, seasons.idSeasonAS idSeason
FROM episode
JOIN files ONfiles.idFile=episode.idFileJOIN tvshow ONtvshow.idShow=episode.idShowLEFT JOIN seasons ONseasons.idShow=episode.idShowANDseasons.season=episode.c12JOINpathONfiles.idPath=path.idPath
LEFT JOIN bookmark_orig ONbookmark_orig.idFile=episode.idFileANDbookmark_orig.type=1ANDbookmark_orig.sqlUser= SUBSTRING_INDEX(USER(),'@',1)
LEFT JOIN filestate ONfilestate.idFile=files.idFileANDfilestate.sqlUser= SUBSTRING_INDEX(USER(),'@',1);
/* View für Serien anpassen, um den watched state zu verteilen EDIT: Added path.idParentPath AS idParentPath*/DROPVIEW IF EXISTS `tvshowview`;
CREATEVIEW `tvshowview` ASSELECT
tvshow.*, path.idParentPath AS idParentPath, path.strPath AS strPath, path.dateAdded AS dateAdded,
MAX(filestate.lastPlayed) AS lastPlayed, NULLIF(COUNT(episode.c12), 0) AS totalCount,
COUNT(filestate.playCount) AS watchedcount, NULLIF(COUNT(DISTINCT(episode.c12)), 0) AS totalSeasons
FROM tvshow
LEFT JOIN tvshowlinkpath ONtvshowlinkpath.idShow=tvshow.idShowLEFT JOINpathONpath.idPath=tvshowlinkpath.idPathLEFT JOIN episode ONepisode.idShow=tvshow.idShowLEFT JOIN files ONfiles.idFile=episode.idFileLEFT JOIN filestate onfilestate.idFile=episode.idFileANDfilestate.sqlUser= SUBSTRING_INDEX(USER(),'@',1)
GROUP BYtvshow.idShow
Now TVShows is working again, but there is still something wrong with the Watched markers. I have no idea how to fixe this.
The text was updated successfully, but these errors were encountered:
After exporting my lib, removing the databases, updating to KODI, adding the changes to the database and importing my lib again I found out TVShows wasn't working anymore.
I changed two things in movie.sql and rebuild the db from scratch:
Now TVShows is working again, but there is still something wrong with the Watched markers. I have no idea how to fixe this.
The text was updated successfully, but these errors were encountered: