From 2608667f440c1d0f15f26c5856f86cb16bb02175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 28 May 2022 13:38:18 +0200 Subject: Only collect screenplays. --- pl/episode_data.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pl/episode_data.pl b/pl/episode_data.pl index 3e0ee1b..bde723f 100644 --- a/pl/episode_data.pl +++ b/pl/episode_data.pl @@ -132,8 +132,10 @@ fetch_screenwriter_url(Name, U) :- xpath(A, /self(@href), U). absolute_url(R) --> "https://www.detectiveconanworld.com", R. -screenwriter_episode(Ep) --> string(_), "(Episode ", integer(Ep), ")", string(_). -screenwriter_episode(Ep) --> string(_), "(Episodes ", integer(Ep1), "-", integer(Ep2), ")", string(_), +screenwriter_episode(Ep) --> string(_), "(Episode ", integer(Ep), ")". +screenwriter_episode(Ep) --> string(_), "(Episodes ", integer(Ep1), "-", integer(Ep2), ")", + { between(Ep1, Ep2, Ep) }. +screenwriter_episode(Ep) --> string(_), "(Episodes ", integer(Ep1), "-", integer(Ep2), " only)", { between(Ep1, Ep2, Ep) }. fetch_screenwriter_episode(Name, Ep) :- -- cgit v1.2.3