s/preview_url/thumbnail_url/

This commit is contained in:
Christophe Benz 2010-04-27 19:00:26 +02:00 committed by Romain Bignon
commit aa1a2a2921
5 changed files with 9 additions and 9 deletions

View file

@ -42,8 +42,8 @@ class MiniVideo(QFrame):
else:
self.ui.ratingLabel.setText('%s' % video.rating)
if video.preview_url:
data = urllib2.urlopen(video.preview_url).read()
if video.thumbnail_url:
data = urllib2.urlopen(video.thumbnail_url).read()
img = QImage.fromData(data)
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))