Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed TV shows not showing up in new XBMC nightly builds #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/org/xbmc/httpapi/client/TvShowClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public ArrayList<TvShow> getTvShows(INotifiableManager manager, int sortBy, Stri
sb.append(" LEFT OUTER join (");
sb.append(" SELECT min(tvshow.idShow) as idShow, tvshow.c00, count(1) AS totalcount, count(files.playCount) AS watchedcount");
sb.append(" FROM tvshow");
sb.append(" JOIN tvshowlinkepisode ON tvshow.idShow = tvshowlinkepisode.idShow");
sb.append(" JOIN episode ON episode.idEpisode = tvshowlinkepisode.idEpisode");
sb.append(" JOIN episode ON tvshow.idShow = episode.idShow");
// sb.append(" JOIN episode ON episode.idEpisode = episode.idEpisode");
sb.append(" JOIN files ON files.idFile = episode.idFile");
sb.append(" GROUP BY tvshow.c00");
sb.append(" ) counts ON tvshow.idShow = counts.idShow");
Expand Down Expand Up @@ -179,8 +179,8 @@ public ArrayList<TvShow> getTvShows(INotifiableManager manager, Actor actor, int
sb.append(" LEFT OUTER join (");
sb.append(" SELECT min(tvshow.idShow) as idShow, tvshow.c00, count(1) AS totalcount, count(files.playCount) AS watchedcount");
sb.append(" FROM tvshow");
sb.append(" JOIN tvshowlinkepisode ON tvshow.idShow = tvshowlinkepisode.idShow");
sb.append(" JOIN episode ON episode.idEpisode = tvshowlinkepisode.idEpisode");
sb.append(" JOIN episode ON tvshow.idShow = episode.idShow");
//sb.append(" JOIN episode ON episode.idEpisode = episode.idEpisode");
sb.append(" JOIN files ON files.idFile = episode.idFile");
sb.append(" GROUP BY tvshow.c00");
sb.append(" ) counts ON tvshow.idShow = counts.idShow");
Expand Down Expand Up @@ -226,8 +226,8 @@ public ArrayList<TvShow> getTvShows(INotifiableManager manager, Genre genre, int
sb.append(" LEFT OUTER join (");
sb.append(" SELECT min(tvshow.idShow) as idShow, tvshow.c00, count(1) AS totalcount, count(files.playCount) AS watchedcount");
sb.append(" FROM tvshow");
sb.append(" JOIN tvshowlinkepisode ON tvshow.idShow = tvshowlinkepisode.idShow");
sb.append(" JOIN episode ON episode.idEpisode = tvshowlinkepisode.idEpisode");
sb.append(" JOIN episode ON tvshow.idShow = episode.idShow");
//sb.append(" JOIN episode ON episode.idEpisode = episode.idEpisode");
sb.append(" JOIN files ON files.idFile = episode.idFile");
sb.append(" GROUP BY tvshow.c00");
sb.append(" ) counts ON tvshow.idShow = counts.idShow");
Expand Down Expand Up @@ -265,8 +265,8 @@ public ArrayList<Season> getSeasons(INotifiableManager manager, TvShow show, boo
sb.append("SELECT c12 from (");
sb.append(" SELECT episode.c12 ");
sb.append(" FROM tvshow ");
sb.append(" LEFT OUTER JOIN tvshowlinkepisode ON tvshowlinkepisode.idShow = tvshow.idShow ");
sb.append(" LEFT OUTER JOIN episode ON episode.idEpisode = tvshowlinkepisode.idEpisode ");
sb.append(" LEFT OUTER JOIN episode ON episode.idShow = tvshow.idShow ");
//sb.append(" LEFT OUTER JOIN episode ON episode.idEpisode = episode.idEpisode ");
if (hideWatched) {
sb.append(" LEFT OUTER JOIN files ON files.idFile = episode.idFile ");
}
Expand Down Expand Up @@ -298,8 +298,8 @@ public ArrayList<Season> getSeasons(INotifiableManager manager, int sortBy, Stri
StringBuilder sb = new StringBuilder();
sb.append("SELECT min(tvshow.idShow) as idShow, episode.c12 ");
sb.append("FROM tvshow ");
sb.append(" LEFT OUTER JOIN tvshowlinkepisode ON tvshowlinkepisode.idShow = tvshow.idShow ");
sb.append(" LEFT OUTER JOIN episode ON episode.idEpisode = tvshowlinkepisode.idEpisode ");
sb.append(" LEFT OUTER JOIN episode ON episode.idShow = tvshow.idShow ");
//sb.append(" LEFT OUTER JOIN episode ON episode.idEpisode = episode.idEpisode ");
if (hideWatched) {
sb.append(" LEFT OUTER JOIN files ON files.idFile = episode.idFile ");
}
Expand Down