Change the EXIT_WITH_ERROR
to PRINT
for channels not having an enumerable uploads
playlist
This commit is contained in:
parent
cb7b68342a
commit
fd75d27b99
4
main.cpp
4
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)
|
||||
|
Loading…
Reference in New Issue
Block a user