s/preview_url/thumbnail_url/
This commit is contained in:
parent
cbf7480603
commit
aa1a2a2921
5 changed files with 9 additions and 9 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue