Fix scraping: a tag has changed
This commit is contained in:
@@ -88,7 +88,7 @@ class TVGuideScraper:
|
||||
movie = Movie()
|
||||
movie.title = movietag.select('a.titre')[0].string
|
||||
movie.genre = 'Film' # Genre is not available
|
||||
movie.channel = channel.select('.logo_chaine_g img')[0]\
|
||||
movie.channel = channel.select('.logo_chaine_g1 img')[0]\
|
||||
['alt'].replace('Programme ','')
|
||||
movie.day = day.title()
|
||||
movie.date = datetime.date.strftime(date, '%Y-%m-%d')
|
||||
@@ -107,7 +107,7 @@ class TVGuideScraper:
|
||||
logging.debug('Found movie: {0!r}'.format(movie))
|
||||
movies.append(movie)
|
||||
except:
|
||||
logging.warning('Error parsing movie from tag: {0!r}'.format(movietag))
|
||||
logging.warning('Error parsing movie from tag: {0!r}'.format(movie))
|
||||
|
||||
return movies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user