From 17b8727f6299e55e4ba2f2dba526f8f7c79a6aa3 Mon Sep 17 00:00:00 2001 From: trilader Date: Sun, 18 Jul 2021 16:39:32 +0200 Subject: [PATCH] Use actual video publication date if availiable This commit add usage of the video publication date in addition to the "Added to playlist" date that was used up to this point. This improves the video list behavior for channels which upload videos and add them to the playlists a while before the actual publication date. Before these published, but old in the playlist videos would show up at their upload date instead of the publication date which is the relevant one for this application. The "added to playlist" date is still recorded and being kept. --- application.cpp | 3 ++- yt.cpp | 30 +++++++++++++++++------------- yt.h | 3 ++- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/application.cpp b/application.cpp index 7c8131c..4aaf839 100644 --- a/application.cpp +++ b/application.cpp @@ -118,7 +118,8 @@ void draw_channel_list(const std::vector