Add in urls.txt if the URL is related to YouTube Data API v3 or YouTube operational API

This commit is contained in:
Benjamin Loison 2023-02-08 16:05:03 +01:00
parent 0c51bd05bc
commit 622188d6d9

View File

@ -722,7 +722,7 @@ json getJson(unsigned short threadId, string url, bool usingYoutubeDataApiv3, st
ostringstream toString; ostringstream toString;
toString << CHANNELS_DIRECTORY << directoryPath << "/"; 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"; toString << requestsPerChannelThreads[threadId]++ << ".json";
writeFile(threadId, toString.str(), "w", content); writeFile(threadId, toString.str(), "w", content);