diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-06 23:06:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-06 23:06:56 +0200 |
commit | 34c0940e6cd6d222f2234d81433fef38ca3a3738 (patch) | |
tree | a547f0bfd499e5c95035a701439fd4a0df1440f1 /pl/cfg.pl | |
parent | 750fd640b56e169caafdbb96bef0c3c3af3dba1f (diff) | |
download | EpisodeBrowser-34c0940e6cd6d222f2234d81433fef38ca3a3738.tar.gz |
Persist "View Watched" setting.
Diffstat (limited to 'pl/cfg.pl')
-rw-r--r-- | pl/cfg.pl | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -22,12 +22,19 @@ get_root(V) :- set_glob(V) :- set_key('EpisodeRoot', V). get_glob(V) :- - ( get_key('EpisodeRoot', V) + ( get_key('EpisodeRoot', V), ! ; V = '*/*.*' ). set_url(V) :- set_key('UrlPrefix', V). get_url(V) :- - ( get_key('UrlPrefix', V) + ( get_key('UrlPrefix', V), ! ; V = 'https://gogoanime.fi/detective-conan-episode-' ). + +set_view_watched(V) :- set_key('ViewWatched', V). +get_view_watched(V) :- + ( get_key('ViewWatched', V), + integer(V), ! + ; V = 1 + ). |