From 3bd10da4520ad24d38d4f3eb875b9d9676510bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 18 Apr 2022 00:08:29 +0200 Subject: Support combined filters. --- c/episodelistview.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'c') diff --git a/c/episodelistview.c b/c/episodelistview.c index 21a8e3d..464313f 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -294,21 +294,21 @@ ElvUpdate() if (!BViewWatched) { term_t t; t = T(1); - PI(t,iEp) goto ep; - P("track_episodes","watched",1,t) goto ep; + PI(t,iEp) goto a; + P("track_episodes","watched",1,t) goto a; continue; } - if (!BViewTVOriginal) { + a: if (!BViewTVOriginal) { term_t t; t = T(1); - PI(t,iEp) goto ep; - P("episode_data","tv_original",1,t) goto ep; + PI(t,iEp) goto b; + P("episode_data","tv_original",1,t) goto b; continue; } /* Format episode number string. */ - ep: _stprintf_s(tszEpisode, sizeof(tszEpisode), TEXT("%d"), iEp); + b: _stprintf_s(tszEpisode, sizeof(tszEpisode), TEXT("%d"), iEp); /* Insert item. */ lviEpisode.iItem = iItem++; -- cgit v1.2.3