add missing helper functions
This commit is contained in:
parent
3c8afec775
commit
0f59b2cd67
|
@ -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(" ", "_"))
|
||||||
|
|
Loading…
Reference in New Issue