From fd75d27b998ebc17ea8194bf522664ec2e3c2f8c Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Thu, 16 Feb 2023 12:21:28 +0100 Subject: [PATCH] Change the `EXIT_WITH_ERROR` to `PRINT` for channels not having an enumerable `uploads` playlist --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 8d2a823..c06ae25 100644 --- a/main.cpp +++ b/main.cpp @@ -577,7 +577,9 @@ void treatChannelOrVideo(unsigned short threadId, bool isChannel, string id, str json data = getJson(threadId, "playlistItems?part=snippet,contentDetails,status&playlistId=" + playlistToTreat + "&maxResults=50&pageToken=" + pageToken, true, channelToTreat, returnErrorIfPlaylistNotFound); if(data.contains("error")) { - EXIT_WITH_ERROR("Not listing captions on videos, as `playlistItems` hasn't found the `uploads` playlist!") + // `UCFoBM1VginhMH7lR56GtVbQ` doesn't have videos and is in this case for instance. + PRINT("Not listing captions on videos, as `playlistItems` hasn't found the `uploads` playlist!") + break; } json items = data["items"]; for(const auto& item : items)