add missing helper functions

This commit is contained in:
Sarah 2022-12-04 14:25:17 +00:00
parent 3c8afec775
commit 0f59b2cd67
1 changed files with 9 additions and 1 deletions

View File

@ -139,4 +139,12 @@ def generate_imdb_film_link(film):
def generate_wikipedia_page_link(page_title): def generate_wikipedia_page_link(page_title):
return generate_markdown_link(page_title, "https://en.wikipedia.org/wiki/{}".format(page_title.replace(" ", "_"))) return generate_markdown_link(page_title, generate_wikipedia_url(page_title))
def generate_imdb_url(imdb_id):
return "https://www.imdb.com/title/tt{}/".format(imdb_id)
def generate_wikipedia_url(page_title):
"https://en.wikipedia.org/wiki/{}".format(page_title.replace(" ", "_"))