Add in urls.txt
if the URL is related to YouTube Data API v3 or YouTube operational API
This commit is contained in:
parent
50306aff5d
commit
d5c55e756a
2
main.cpp
2
main.cpp
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user