腾讯视频热播列表 #6

This commit is contained in:
Irony 2018-02-05 11:27:30 +08:00
parent 24df35320c
commit 0bd06f7bf9
2 changed files with 0 additions and 6 deletions

View file

@ -78,8 +78,6 @@ class CoverLabel(QLabel):
def __init__(self, cover_path, cover_title, video_url, *args, **kwargs):
super(CoverLabel, self).__init__(*args, **kwargs)
# super(CoverLabel, self).__init__(
# '<html><head/><body><img src="{0}"/></body></html>'.format(os.path.abspath(cover_path)), *args, **kwargs)
self.setCursor(Qt.PointingHandCursor)
self.setScaledContents(True)
self.setMinimumSize(220, 308)

View file

@ -228,10 +228,6 @@ class GridWidget(QWidget):
self._parseHtml(html)
self.loadStarted.emit(False)
def splist(self, src, length):
# 等分列表
return (src[i:i + length] for i in range(len(src)) if i % length == 0)
def _parseHtml(self, html):
# encoding = chardet.detect(html) or {}
# html = html.decode(encoding.get("encoding","utf-8"))