From 984ce533e58aa91ac98c69ba4cc239c4a2a8d2cd Mon Sep 17 00:00:00 2001 From: lomion Date: Wed, 24 Jun 2020 10:51:42 +0200 Subject: [PATCH] Turned movie title into link --- test_tmdb.py | 2 +- tmdb/tmdb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_tmdb.py b/test_tmdb.py index 2b9f5d5..f037b8e 100644 --- a/test_tmdb.py +++ b/test_tmdb.py @@ -41,7 +41,7 @@ class TestTmdbMethods(unittest.TestCase): tmdb = TmdbBot("","" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ) movie.query_details('550') message = tmdb.construct_html_message(movie, overview_length = 10) - self.assertEqual(message, """

Fight Club

+ self.assertEqual(message, """

Fight Club

Ein Yuppie [...]

Acting: Edward Norton, Brad Pitt, Helena Bonham Carter

taken from www.themoviedb.org

""") diff --git a/tmdb/tmdb.py b/tmdb/tmdb.py index 2aefa0f..b07698c 100644 --- a/tmdb/tmdb.py +++ b/tmdb/tmdb.py @@ -56,7 +56,7 @@ class TmdbBot(Plugin): for actor in movie.cast[:cast_length]: cast+= f'{actor}, ' cast = cast[:-2] - html_message = f"""

{escape(movie.title)}

+ html_message = f"""

{escape(movie.title)}

{escape(movie.overview)[:overview_length]}{three_dotts}

{cast}

taken from www.themoviedb.org

"""