aboutsummaryrefslogtreecommitdiff
path: root/pl
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-05-30 18:10:54 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-05-30 18:10:54 +0200
commit4f83cf6a5337379327e3eeda765e067d4f13ed4b (patch)
treee6f138999d3765ff00f8c2b1e23e38ac0605e153 /pl
parent6fbb54d91b78cd0f89196ea091ad786469396692 (diff)
downloadEpisodeBrowser-4f83cf6a5337379327e3eeda765e067d4f13ed4b.tar.gz
Split up Watch into Watch Locally and Watch Online.
Diffstat (limited to 'pl')
-rw-r--r--pl/local_episodes.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/pl/local_episodes.pl b/pl/local_episodes.pl
index 0273bb3..68809a7 100644
--- a/pl/local_episodes.pl
+++ b/pl/local_episodes.pl
@@ -1,6 +1,7 @@
:- module(local_episodes, [local_episode//1,
episode_file/2,
- open_episode/1]).
+ open_episode_locally/1,
+ open_episode_online/1]).
:- use_module(library(dcg/basics)).
:- use_module(atom_dcg).
@@ -45,5 +46,5 @@ episode_file(N, F) :-
% Open episode.
episode_url(N) --> { with_codes(get_url(U)) }, string(U), 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).
+open_episode_locally(N) :- episode_file(N, F), !, win_shell(open, F).
+open_episode_online(N) :- atom_phrase(episode_url(N), U), win_shell(open, U).