From 294051cc6ae9ae7d7dc72a997d53442f3a015c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 30 Mar 2022 00:31:49 +0200 Subject: Open episode online in absence of local copy. --- pl/local_episodes.pl | 9 ++++++--- 1 file 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). -- cgit v1.2.3