aboutsummaryrefslogtreecommitdiff
path: root/pl/local_episodes.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pl/local_episodes.pl')
-rw-r--r--pl/local_episodes.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/pl/local_episodes.pl b/pl/local_episodes.pl
index 3839399..5eaf6b7 100644
--- a/pl/local_episodes.pl
+++ b/pl/local_episodes.pl
@@ -34,6 +34,9 @@ sort_episode_file(N, F) :-
setof(N_-F_, episode_file(N_, F_), S),
member(N-F, S).
-open_episode(N) :-
- episode_file(N, F),
- win_shell(open, F).
+% Open episode.
+
+episode_url(N) --> "https://gogoanime.fi/detective-conan-episode-", integer(N).
+
+open_episode(N) :- episode_file(N, F), !, win_shell(open, F).
+open_episode(N) :- atom_phrase(episode_url(N), U), win_shell(open, U).