fix capitalization
This commit is contained in:
parent
d83f2f8dac
commit
46647ef4d7
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue