diff --git a/ayta/blueprints/channel.py b/ayta/blueprints/channel.py index c6334bc..2c083af 100644 --- a/ayta/blueprints/channel.py +++ b/ayta/blueprints/channel.py @@ -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)