diff src/services/anilist.cpp @ 48:e613772f41d5

statistics.cpp: show requests made
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 01:07:22 -0400
parents d8eb763e6661
children 0c4138de2ea7
line wrap: on
line diff
--- a/src/services/anilist.cpp	Mon Sep 25 00:43:38 2023 -0400
+++ b/src/services/anilist.cpp	Mon Sep 25 01:07:22 2023 -0400
@@ -59,6 +59,7 @@
 		/* Use system certs... useful on Windows. */
 		curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA);
 		CURLcode res = curl_easy_perform(curl);
+		session.IncrementRequests();
 		curl_slist_free_all(list);
 		curl_easy_cleanup(curl);
 		if (res != CURLE_OK) {