diff options
author | John Ankarström <john@ankarstrom.se> | 2022-05-28 20:50:33 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-05-28 20:50:33 +0200 |
commit | e12dafae0488d82d05be9dfde3d99f9e3cbb0ce0 (patch) | |
tree | b8b24e64dc0bf3e61d997e726153eb4c5c5756fe /c/episodelistview.c | |
parent | 2608667f440c1d0f15f26c5856f86cb16bb02175 (diff) | |
download | EpisodeBrowser-e12dafae0488d82d05be9dfde3d99f9e3cbb0ce0.tar.gz |
Add option to show/hide other screenwriters.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index 42c207d..c432497 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -364,26 +364,39 @@ ElvUpdate() GI(t,&cEp) return; for (iEp = 1, iItem = 0; iEp <= cEp; iEp++) { + extern char SzLimitScreenwriter[]; extern int BViewTVOriginal, BViewWatched; - if (!BViewWatched) { + if (SzLimitScreenwriter[0]) { + atom_t a1, a2; term_t t; - t = T(1); + t = T(3); + a1 = A("Screenwriter"); + a2 = A(SzLimitScreenwriter); PI(t,iEp) goto a; - P("track_episodes","watched",1,t) goto a; - continue; + PA(t+1,a1) goto a; + PA(t+2,a2) goto a; + P("episode_data","episode_datum",3,t) continue; } - a: if (!BViewTVOriginal) { + a: if (!BViewWatched) { term_t t; t = T(1); PI(t,iEp) goto b; - P("episode_data","tv_original",1,t) goto b; + P("track_episodes","watched",1,t) goto b; + continue; + } + + b: if (!BViewTVOriginal) { + term_t t; + t = T(1); + PI(t,iEp) goto c; + P("episode_data","tv_original",1,t) goto c; continue; } /* Format episode number string. */ - b: _stprintf_s(tszEpisode, sizeof(tszEpisode), TEXT("%d"), iEp); + c: _stprintf_s(tszEpisode, sizeof(tszEpisode), TEXT("%d"), iEp); /* Insert item. */ lviEpisode.iItem = iItem++; |