Hotfix channel sorting

This commit is contained in:
Ventilaar 2024-04-09 12:11:14 +02:00
parent 7e06c8673b
commit 4fa0ee2c68
No known key found for this signature in database

View File

@ -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)