From d5c55e756a988eacde07d3e95c686f93428fa564 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Wed, 8 Feb 2023 16:05:03 +0100 Subject: [PATCH] Add in `urls.txt` if the URL is related to YouTube Data API v3 or YouTube operational API --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 1ab06d9..b600ce3 100644 --- a/main.cpp +++ b/main.cpp @@ -722,7 +722,7 @@ json getJson(unsigned short threadId, string url, bool usingYoutubeDataApiv3, st ostringstream toString; toString << CHANNELS_DIRECTORY << directoryPath << "/"; - writeFile(threadId, toString.str() + "urls.txt", "a", url + "\n"); + writeFile(threadId, toString.str() + "urls.txt", "a", url + " " + (usingYoutubeDataApiv3 ? "true" : "false") + "\n"); toString << requestsPerChannelThreads[threadId]++ << ".json"; writeFile(threadId, toString.str(), "w", content);