From 0f777ef139eafc82abfe9a0a34b41eb003f1dd29 Mon Sep 17 00:00:00 2001 From: trilader Date: Tue, 1 Dec 2020 20:37:08 +0100 Subject: [PATCH] Return number of new (unwatched) videos when fetching updates --- main.cpp | 8 +++++--- yt.cpp | 6 ++++-- yt.h | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index a19dde1..1346e83 100644 --- a/main.cpp +++ b/main.cpp @@ -143,7 +143,7 @@ void load_videos_for_channel(const Channel &channel, bool force=false) selected_video = 0; } -void fetch_videos_for_channel(Channel &channel, bool name_in_title=false) +int fetch_videos_for_channel(Channel &channel, bool name_in_title=false) { if(channel.is_virtual) { std::vector