Posts: 3,581
Joined: Sep 2009
Reputation:
110
So leave the data sanitisation stuff in as part of DB upgrades. That's sensible defensive programming.
You have a rich third party tool using community, that is not likely to change. Regardless of the cause of the problem, Kodi would benefit from not failing in migrations, without notification (and worse, it appears to work, starts, just stuff is missing and on the following start the junk is still there!) - i.e. by having this in (or similar) you'll save yourselves a lot of grief when people hit these issues.
Even if your solution is just brute force - take the first actor only and trim it - approach during migration, at least the DBs will come over and people won't get wierd, un-notified failure conditions.
In my own case, this DB has been upgraded and carried forward since Camelot or certainly no later than Dharma, without these issues. I use only Sickbeard, Ember and TinyMM, all of which are very popular....so I am likely not an edge case here at all. I note on git one of the team says they don't use any third party tools and hit this issue....so surely the only sensible thing is to put in some sanitisation stuff?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 118
Joined: Oct 2008
Reputation:
1
tvont
Senior Member
Posts: 118
2015-05-24, 16:14
(This post was last modified: 2015-05-24, 19:58 by tvont.)
I had the same problem (the actors and studio table showed up with lots of duplicates)
what fixed it for me was deduplication using ALTER_IGNORE_TABLE
ALTER IGNORE TABLE MyVideos90.actors ADD UNIQUE INDEX idx_actname (strActor (255))
ALTER IGNORE TABLE MyVideos90.studio ADD UNIQUE INDEX idx_stuname (strStudio (255))
please backup before you try
Posts: 1,415
Joined: May 2009
Reputation:
47
helta
Posting Freak
Posts: 1,415
I'm pretty sure this is a Sickbeard problem in one way or another. Sickbeard is the only 3rd party tool that I use that writes nfos, and I have the same problem as the others.
Posts: 3,581
Joined: Sep 2009
Reputation:
110
It's really hampering my Isengard testing and github has gone quiet on it....are there any updates devs? Is this what is holding up the betas?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 31,445
Joined: Jan 2011
I believe this and one other thing are the "critical" issues holding up the next beta. I'm not sure what the status is on it, since most of the discussion is above my head, since I'm not a dev ;)
Posts: 3,581
Joined: Sep 2009
Reputation:
110
Just a big thank you to all on this one - no issue upgrading helix to Isengard B2 it seems.
I'll delete all my test files etc now, and report if I find anything else separately.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.