def video_options(self, item, position):
if position == self.pos:
return curses.color_pair(1)
options = 0
options |= curses.A_DIM if item['seen'] else 0
options |= curses.color_pair(3) if item.get('fav') else 0
if item['title'] in self.data:
info = self.data[item['title']]
options |= curses.A_UNDERLINE if info.get('watch') else 0
if any(item['title'] == i['title'] for i in self.selected):
options |= curses.A_REVERSE
return options
评论列表
文章目录