2013-09-05, 02:44
I have a MySQL database that is used by multiple clients, I scrape with Windows and have noticed a strange issue...
When viewing TV Shows the episode count will only increase, and never decrease. That is to say, if I add ten episodes to a show, I will see ten un-watched episodes. As I watch them and delete them, that number never decreases, it will only increase. So if after adding ten shows and scraping.. Then watching them and deleting them from the NAS, AND re-scraping and cleaning the database... There will be no episodes in the folder (Where these used to be ten) yet I will see 10 new shows in the episode count. I have scraped from Windows, AppleTV and Linux all with the same result. I have even started a brand new database and it exhibited the same behavior...
I suspect something is wrong with my MySQL, but I am not sure where to start looking.
Everything else is fine, I see the correct episodes when i drill down int the folder (but the count in Media View is always wrong) and all of my resume points and such work perfectly.
In a debug log i also see a clean up failed message:
When viewing TV Shows the episode count will only increase, and never decrease. That is to say, if I add ten episodes to a show, I will see ten un-watched episodes. As I watch them and delete them, that number never decreases, it will only increase. So if after adding ten shows and scraping.. Then watching them and deleting them from the NAS, AND re-scraping and cleaning the database... There will be no episodes in the folder (Where these used to be ten) yet I will see 10 new shows in the episode count. I have scraped from Windows, AppleTV and Linux all with the same result. I have even started a brand new database and it exhibited the same behavior...
I suspect something is wrong with my MySQL, but I am not sure where to start looking.
Everything else is fine, I see the correct episodes when i drill down int the folder (but the count in Media View is always wrong) and all of my resume points and such work perfectly.
In a debug log i also see a clean up failed message: