diff options
Diffstat (limited to 'pl')
-rw-r--r-- | pl/episode_data.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pl/episode_data.pl b/pl/episode_data.pl index 167594d..5b83546 100644 --- a/pl/episode_data.pl +++ b/pl/episode_data.pl @@ -115,6 +115,10 @@ maybe_assert_episode_datum(Ep, Key, Value) :- episode_number(Ep) --> integer(Ep). episode_number(Ep) --> integer(Ep), "WPS", integer(_). +% Temporary helper. +fetch_episode_data(Ep, Title, W, Date, Source, Hint) :- + fetch_episode_info(Ep, ['Title'-Title, 'Wiki'-W, 'Date'-Date, 'Source'-Source, 'Hint'-Hint]). + fetch_episode_info(Ep, ['Title'-Title, 'Wiki'-W, 'Date'-Date, 'Source'-Source, 'Hint'-Hint]) :- cached_html('https://www.detectiveconanworld.com/wiki/Anime', H), xpath(H, //tr(td(index(3),@style='background:#f2fde9;')), R), |