From d7cf090cee5f1b71c3e9c5f232d0e2a51ad6a7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 17 Feb 2022 01:48:22 +0100 Subject: More cleanup. --- pl/local_episodes.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pl') 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. -- cgit v1.2.3