Layout: refactor item system to be more maintainable, add vertical item type

This commit is contained in:
James Taylor
2019-08-23 14:48:00 -07:00
parent 70d2cff817
commit 85572c94de
7 changed files with 167 additions and 312 deletions

View File

@@ -36,7 +36,6 @@ def watch_page_related_video_info(item):
except KeyError:
result['views'] = ''
result['thumbnail'] = util.get_thumbnail_url(item['id'])
result['item_size'] = 'small'
result['type'] = 'video'
return result
@@ -47,7 +46,6 @@ def watch_page_related_playlist_info(item):
'id': item['list'],
'first_video_id': item['video_id'],
'thumbnail': util.get_thumbnail_url(item['video_id']),
'item_size': 'small',
'type': 'playlist',
}