aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pl/episode_data.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/pl/episode_data.pl b/pl/episode_data.pl
index 63a54ed..0246de0 100644
--- a/pl/episode_data.pl
+++ b/pl/episode_data.pl
@@ -87,7 +87,8 @@ maybe_assert_episode_title(Ep, Title) :-
maybe_assert_episode_datum(Ep, Key, Value) :-
( episode_datum(Ep, Key, Value), !
- ; assert_episode_datum(Ep, Key, Value)
+ ; retract_episode_datum(Ep, Key, _),
+ assert_episode_datum(Ep, Key, Value)
).
fetch_html(H) :-