Posts: 365
Joined: Sep 2011
Reputation:
14
Hi,
I have the following directory structure for tv shows
D:/DATA/TV/TV_SHOW_1/SEASON 1/
E:/DATA/TV/TV_SHOW_1/SEASON 2/
This results in multiple entries (in my case in 3) for one show in the tvshow table in the database.
Because the Property "TVShows.Count" is equal to the count of rows in the tvshowview, this might be wrong.
The question is - is this by purpose or is it a bug?
Posts: 346
Joined: Jul 2009
Reputation:
4
It is not on purpose or bug, if you ended have same TV show in different locations you will have same TV show entry for each location.
Each TV show should be in one folder and you will be fine.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2012-11-20, 15:57
(This post was last modified: 2012-11-20, 16:35 by un1versal.)
You can have different sources or even when adding a source have multiple paths source for TV shows, however the count only works in library mode, since when using Files>Source Tvshow only counts the shows added in that source if paths are not in same source.
Like this
bring context menu over a source
add source and browse - set a path
click add
A second source path should appear under that one, repeat add source and browse - set a path
Set content to this multipath source and save.
Should all work ok now under this.
see this for a what I tried to describe above
sorry about quality but xbmc doesnt take screenshots of this menu for some reason.
uNi
Posts: 365
Joined: Sep 2011
Reputation:
14
Hi uNiversal,
what you described is exactly like I set up my source for TV content.
I just don't understand why there are 3 entries in the movie database.
One for the show under the path D:/DATA/TV/TV_SHOW_1/SEASON 1/,
one for the show under E:/DATA/TV/TV_SHOW_1/SEASON 2/
and one entry for the multipath of this show.
If XBMC adds the tv shows like that to the database the count(1) sql on the tvshowview gives a result that's not true.
Maybe there should be a count(distinct c00) to give the result to TVShows.Count in the CRecentlyAddedJob class.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
Perhaps like burke said you cant have same show in different sources,
It works fine with 1 show 1 path.
uNi
Posts: 31,445
Joined: Jan 2011
I don't believe he's talking about how it appears in the GUI, but rather that having it as two sources (which does appear fine) is causing the "total TV show count" to be off.
Posts: 543
Joined: Jan 2014
Reputation:
6
sorry for unburrying, will this be adressed? happening to me too
Posts: 31,445
Joined: Jan 2011
I think he did fix it, IIRC. If you do try a nightly build, be sure to make a total backup of your xbmc settings folder (the parent to the
userdata (wiki) folder). Or just use the Backup add-on.
Posts: 487
Joined: Jun 2013
Reputation:
21
Thanks Ned. I simply did an install using KodiSetup-20141017-93233dd-master.exe (which i downloaded a while ago) and had no issues...
Unfortunately i still have odd counts for my tv series, for example i have counts like total=42, watched=5, unwatched=42 (or similar where watched+unwateched =/ total =/ actual total) !!
I'd like to have the count working going forward and though i'm not too fussed with blowing the install and starting from scratch (i use local metadata), is there some simpler way to fix these problem counts?
Posts: 31,445
Joined: Jan 2011
Not that I know of, but that's not saying much since I'm not very knowledgeable about skinning issues and labels.
Posts: 5,174
Joined: Jan 2010
Reputation:
97
Kib
Team-Kodi Member
Posts: 5,174
Did you do a clean install including removing the entire database and rescanning