This commit is contained in:
parent
c0fec89a53
commit
e2707eca0f
@ -9,8 +9,8 @@ WIKI_URL = (
|
|||||||
"https://fr.wikipedia.org/wiki/Liste_des_%C3%A9pisodes_de_D%C3%A9tective_Conan"
|
"https://fr.wikipedia.org/wiki/Liste_des_%C3%A9pisodes_de_D%C3%A9tective_Conan"
|
||||||
)
|
)
|
||||||
GOOD_COLOR = ["#ee8000", "#80ffff"]
|
GOOD_COLOR = ["#ee8000", "#80ffff"]
|
||||||
CSV_COLUMNS = ["N°", "Arc", "Saison", "Episode", "Titre", "Date"]
|
CSV_COLUMNS = ["SW", "EW", "Arc", "ST", "ET", "Titre", "Date"]
|
||||||
VF_UNTIL = 214
|
VF_UNTIL = 219
|
||||||
|
|
||||||
EPS_BY_SEASONS = [
|
EPS_BY_SEASONS = [
|
||||||
28,
|
28,
|
||||||
@ -121,7 +121,7 @@ for season, table in enumerate(tables):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if episode < VF_UNTIL:
|
if episode <= VF_UNTIL:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
color = extract_background(tr["style"])
|
color = extract_background(tr["style"])
|
||||||
@ -129,10 +129,11 @@ for season, table in enumerate(tables):
|
|||||||
if not color or color in GOOD_COLOR:
|
if not color or color in GOOD_COLOR:
|
||||||
out.writerow(
|
out.writerow(
|
||||||
{
|
{
|
||||||
"N°": episode,
|
"SW": season,
|
||||||
|
"EW": episode,
|
||||||
"Arc": current_arc(episode),
|
"Arc": current_arc(episode),
|
||||||
"Saison": thetvdb_season(episode),
|
"ST": thetvdb_season(episode),
|
||||||
"Episode": thetvdb_episode(episode),
|
"ET": thetvdb_episode(episode),
|
||||||
"Titre": tds[1].text.strip(),
|
"Titre": tds[1].text.strip(),
|
||||||
"Date": tds[4].text.strip(),
|
"Date": tds[4].text.strip(),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user