Comply to Pep8 standard
This commit is contained in:
@ -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']
|
||||
|
Reference in New Issue
Block a user