diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-07 00:22:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-07 00:22:37 +0200 |
commit | 966a203ff8409972aefe3dd7d243d36adaf21fce (patch) | |
tree | f15b8ffefb867a4b7ac95a49bd6170a3ed58f070 /c/episodelistview.c | |
parent | c4e5a91da5f50b01cbf46d70830fdb7e51413e29 (diff) | |
download | EpisodeBrowser-966a203ff8409972aefe3dd7d243d36adaf21fce.tar.gz |
Add "View TV Originals" option.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index f1cc819..73a97ff 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -202,7 +202,7 @@ ElvUpdate() for (iItem = 0, iEpisode = 1; iEpisode <= iEpisodes; iEpisode++) { int cb; TCHAR *tszEpisode; - extern int BViewWatched; + extern int BViewTVOriginal, BViewWatched; if (!BViewWatched) { term_t t; @@ -212,6 +212,14 @@ ElvUpdate() continue; } + if (!BViewTVOriginal) { + term_t t; + t = T(1); + PI(t,iEpisode) goto ep; + P("episode_data","tv_original",1,t) goto ep; + continue; + } + /* Format episode number string. */ ep: cb = 100; tszEpisode = malloc(cb*sizeof(TCHAR)); |