aboutsummaryrefslogtreecommitdiff
path: root/pl
diff options
context:
space:
mode:
Diffstat (limited to 'pl')
-rw-r--r--pl/local_episodes.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/pl/local_episodes.pl b/pl/local_episodes.pl
index 283ccb7..d1f25f5 100644
--- a/pl/local_episodes.pl
+++ b/pl/local_episodes.pl
@@ -5,13 +5,15 @@
:- use_module(library(dcg/basics)).
:- use_module(atom_dcg).
+local_episode_prefix --> string(_), "Detective_Conan_-_".
+local_episode_prefix --> string(_), "Detective Conan - ".
+
local_episode -->
local_episode(_).
local_episode(N) -->
- string(_), "Detective_Conan_-_", integer(N), string(_).
+ local_episode_prefix, integer(N), string(_).
local_episode(N) -->
- string(_), "Detective_Conan_-_",
- integer(First), "-", integer(Last), string(_),
+ local_episode_prefix, integer(First), "-", integer(Last), string(_),
{ Second is First + 1, between(Second, Last, N) }.
% Find episode on disk.