use helper function
This commit is contained in:
parent
b8128be130
commit
6e182deb6e
|
@ -135,7 +135,7 @@ def generate_markdown_link(text, url):
|
|||
|
||||
|
||||
def generate_imdb_film_link(film):
|
||||
return generate_markdown_link(film['title'], "https://www.imdb.com/title/tt{}/".format(film['imdb_id']))
|
||||
return generate_markdown_link(film['title'], generate_imdb_url(film['imdb_id']))
|
||||
|
||||
|
||||
def generate_wikipedia_page_link(page_title):
|
||||
|
|
Loading…
Reference in New Issue