Hotfix channel sorting
This commit is contained in:
parent
7e06c8673b
commit
4fa0ee2c68
@ -34,7 +34,7 @@ def channel(channelId):
|
||||
for videoId in videoIds:
|
||||
videos.append(get_nosql().get_video_info(videoId, limited=True))
|
||||
|
||||
videos = sorted(videos, key=lambda x: x.get('upload_date'), reverse=True)
|
||||
videos = sorted(videos, key=lambda x: x.get('upload_date', '19700101'), reverse=True)
|
||||
|
||||
return render_template('channel/channel.html', channel=channelInfo, videos=videos)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user