From e2707eca0f371c2aac69f0cf533f8e78e827c1ef Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 9 Jun 2023 18:53:46 +0200 Subject: [PATCH] Fix conan --- commands/conan-eps.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/commands/conan-eps.py b/commands/conan-eps.py index dd34254..dc53af8 100644 --- a/commands/conan-eps.py +++ b/commands/conan-eps.py @@ -9,8 +9,8 @@ WIKI_URL = ( "https://fr.wikipedia.org/wiki/Liste_des_%C3%A9pisodes_de_D%C3%A9tective_Conan" ) GOOD_COLOR = ["#ee8000", "#80ffff"] -CSV_COLUMNS = ["N°", "Arc", "Saison", "Episode", "Titre", "Date"] -VF_UNTIL = 214 +CSV_COLUMNS = ["SW", "EW", "Arc", "ST", "ET", "Titre", "Date"] +VF_UNTIL = 219 EPS_BY_SEASONS = [ 28, @@ -121,7 +121,7 @@ for season, table in enumerate(tables): except ValueError: continue - if episode < VF_UNTIL: + if episode <= VF_UNTIL: continue color = extract_background(tr["style"]) @@ -129,10 +129,11 @@ for season, table in enumerate(tables): if not color or color in GOOD_COLOR: out.writerow( { - "N°": episode, + "SW": season, + "EW": episode, "Arc": current_arc(episode), - "Saison": thetvdb_season(episode), - "Episode": thetvdb_episode(episode), + "ST": thetvdb_season(episode), + "ET": thetvdb_episode(episode), "Titre": tds[1].text.strip(), "Date": tds[4].text.strip(), }