Fix conan
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2023-06-09 18:53:46 +02:00
parent c0fec89a53
commit e2707eca0f

View File

@ -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 = ["", "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(
{
"": 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(),
}