fix capitalization

This commit is contained in:
Sarah 2022-12-10 08:51:53 +00:00
parent d83f2f8dac
commit 46647ef4d7
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ def get_films_by_reference(viewings):
except wikipedia.DisambiguationError as e:
page_title = e.title
page_title = page_title[0].upper() + page_title[1:]
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
except wikipedia.PageError as _:
try:
@ -46,6 +47,7 @@ def get_films_by_reference(viewings):
page_url = referenced_page.url
except wikipedia.DisambiguationError as e:
page_title = e.title
page_title = page_title[0].upper() + page_title[1:]
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
if page_title in films_by_reference.keys():