Comply to Pep8 standard
This commit is contained in:
@ -79,17 +79,23 @@ class FreeboxMoviePlanner:
|
|||||||
thismovie = {}
|
thismovie = {}
|
||||||
thismovie['title'] = movie_title
|
thismovie['title'] = movie_title
|
||||||
thismovie['genre'] = movie.select('.texte_cat a')[0].string
|
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))
|
logging.info('Found movie: {}'.format(thismovie))
|
||||||
|
|
||||||
tmdb_details = self._getMovieRating(movie_title)
|
tmdb_details = self._getMovieRating(movie_title)
|
||||||
if not tmdb_details:
|
if not tmdb_details:
|
||||||
logging.warning('No TMDB match for {}'.format( movie_title))
|
logging.warning(
|
||||||
|
'No TMDB match for {}'.format(movie_title)
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
thismovie['rating'] = tmdb_details['vote_average']
|
thismovie['rating'] = tmdb_details['vote_average']
|
||||||
thismovie['original_title'] = tmdb_details['original_title']
|
thismovie['original_title'] = \
|
||||||
thismovie['overview'] = '\n '.join(textwrap.wrap(tmdb_details['overview'], 75))
|
tmdb_details['original_title']
|
||||||
|
thismovie['overview'] = '\n '.join(textwrap.wrap(
|
||||||
|
tmdb_details['overview'], 75)
|
||||||
|
)
|
||||||
if(
|
if(
|
||||||
float(tmdb_details['vote_average'])
|
float(tmdb_details['vote_average'])
|
||||||
< self.config['minimum-rating']
|
< self.config['minimum-rating']
|
||||||
|
Reference in New Issue
Block a user