Comply to Pep8 standard

This commit is contained in:
2019-10-05 18:19:40 +02:00
parent cd50bd9b54
commit 2555e568c9

View File

@ -79,17 +79,23 @@ class FreeboxMoviePlanner:
thismovie = {}
thismovie['title'] = movie_title
thismovie['genre'] = movie.select('.texte_cat a')[0].string
thismovie['channel'] = channel.select('em')[0].string.replace( 'Programme ', '')
thismovie['channel'] = channel.select('em')[0]\
.string.replace('Programme ', '')
logging.info('Found movie: {}'.format(thismovie))
tmdb_details = self._getMovieRating(movie_title)
if not tmdb_details:
logging.warning('No TMDB match for {}'.format( movie_title))
logging.warning(
'No TMDB match for {}'.format(movie_title)
)
continue
thismovie['rating'] = tmdb_details['vote_average']
thismovie['original_title'] = tmdb_details['original_title']
thismovie['overview'] = '\n '.join(textwrap.wrap(tmdb_details['overview'], 75))
thismovie['original_title'] = \
tmdb_details['original_title']
thismovie['overview'] = '\n '.join(textwrap.wrap(
tmdb_details['overview'], 75)
)
if(
float(tmdb_details['vote_average'])
< self.config['minimum-rating']