|
|
@ -29,6 +29,7 @@ terms = {
|
|
|
|
"pre": ["pre", "voorbeschouwing"],
|
|
|
|
"pre": ["pre", "voorbeschouwing"],
|
|
|
|
"post": ["post", "nabeschouwing"],
|
|
|
|
"post": ["post", "nabeschouwing"],
|
|
|
|
"quali": ["quali", "kwalificatie"],
|
|
|
|
"quali": ["quali", "kwalificatie"],
|
|
|
|
|
|
|
|
"notebook": ["notebook", "notitieboekje"],
|
|
|
|
"preview": ["preview", "seizoensvoorbeschouwing"],
|
|
|
|
"preview": ["preview", "seizoensvoorbeschouwing"],
|
|
|
|
"summary": ["summary", "samenvatting"],
|
|
|
|
"summary": ["summary", "samenvatting"],
|
|
|
|
"highlight": ["highlight", "hoogtepunten"],
|
|
|
|
"highlight": ["highlight", "hoogtepunten"],
|
|
|
@ -43,6 +44,7 @@ names = {
|
|
|
|
"Pre-Sprint Build-up": "Sprint Voorbeschouwing",
|
|
|
|
"Pre-Sprint Build-up": "Sprint Voorbeschouwing",
|
|
|
|
"Post-Sprint Analysis": "Sprint Nabeschouwing",
|
|
|
|
"Post-Sprint Analysis": "Sprint Nabeschouwing",
|
|
|
|
"Sprint Qualifying": "Sprint Kwalificatie",
|
|
|
|
"Sprint Qualifying": "Sprint Kwalificatie",
|
|
|
|
|
|
|
|
"Ted's Sprint Notebook": "Ted's Sprint Notitieboekje",
|
|
|
|
"Pre-Qualifying Build-up": "Kwalificatie Voorbeschouwing",
|
|
|
|
"Pre-Qualifying Build-up": "Kwalificatie Voorbeschouwing",
|
|
|
|
"Post-Qualifying Analysis": "Kwalificatie Nabeschouwing",
|
|
|
|
"Post-Qualifying Analysis": "Kwalificatie Nabeschouwing",
|
|
|
|
"Qualifying Session": "Kwalificatie",
|
|
|
|
"Qualifying Session": "Kwalificatie",
|
|
|
@ -52,6 +54,7 @@ names = {
|
|
|
|
"Live from the Grid": "Vanaf de grid",
|
|
|
|
"Live from the Grid": "Vanaf de grid",
|
|
|
|
"Highlights": "Samenvatting",
|
|
|
|
"Highlights": "Samenvatting",
|
|
|
|
"Race Session": "Race",
|
|
|
|
"Race Session": "Race",
|
|
|
|
|
|
|
|
"Ted's Race Notebook": "Ted's Race Notitieboekje",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -93,12 +96,14 @@ class Race:
|
|
|
|
output = "Pre-Sprint Build-up"
|
|
|
|
output = "Pre-Sprint Build-up"
|
|
|
|
elif any([x in title for x in terms["post"]]):
|
|
|
|
elif any([x in title for x in terms["post"]]):
|
|
|
|
output = "Post-Sprint Analysis"
|
|
|
|
output = "Post-Sprint Analysis"
|
|
|
|
|
|
|
|
elif any([x in title for x in terms["notebook"]]):
|
|
|
|
|
|
|
|
output = "Ted's Sprint Notebook"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
output = "Sprint Qualifying"
|
|
|
|
output = "Sprint Qualifying"
|
|
|
|
elif any([x in title for x in terms["quali"]]):
|
|
|
|
elif any([x in title for x in terms["quali"]]):
|
|
|
|
if any([x in title for x in terms["pre"]]):
|
|
|
|
if any([x in title for x in terms["pre"]]):
|
|
|
|
output = "Pre-Qualifying Build-up"
|
|
|
|
output = "Pre-Qualifying Build-up"
|
|
|
|
elif any([x in title for x in terms["post"]]):
|
|
|
|
elif any([x in title for x in terms["post"] + terms["notebook"]]):
|
|
|
|
output = "Post-Qualifying Analysis"
|
|
|
|
output = "Post-Qualifying Analysis"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
output = "Qualifying Session"
|
|
|
|
output = "Qualifying Session"
|
|
|
@ -112,6 +117,8 @@ class Race:
|
|
|
|
output = "Live from the Grid"
|
|
|
|
output = "Live from the Grid"
|
|
|
|
elif any([x in title for x in terms["summary"] + terms["highlight"]]):
|
|
|
|
elif any([x in title for x in terms["summary"] + terms["highlight"]]):
|
|
|
|
output = "Highlights"
|
|
|
|
output = "Highlights"
|
|
|
|
|
|
|
|
elif any([x in title for x in terms["notebook"]]):
|
|
|
|
|
|
|
|
output = "Ted's Race Notebook"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
output = "Race Session"
|
|
|
|
output = "Race Session"
|
|
|
|
if "2160" in title or "4K" in title:
|
|
|
|
if "2160" in title or "4K" in title:
|
|
|
|