Open matthewmmorrow opened 2 years ago
Ok, so apparently each request to the search
endpoint counts as 100 towards the daily limit. So that means that only 100 videos per day would be allowed to look up which is definitely not that difficult to do with my setup. I wonder if there is a cheaper query.
https://developers.google.com/youtube/v3/determine_quota_cost
I have 3 CCWGTV which one of stays on at night for background noise. I noticed this PR #17 which added the API lookup by title and artist with an API key which worked really well. However after a while all the videos stopped skipping segments. I discovered this was due to the quota of 10000 per day being exceeded. Looking at the script it is supposed to check if the title and artist have changed before making a request so in theory there should only be one request per video. But somehow I'm getting hundreds of requests per minute causing the quota to be exceeded.
I tried looking at the script but I'm not familiar with sh scripting to seen any issues. When I run with debug logging the
has_variable_changed
appears to be working correctly. I'll have to try again when my quota resets.There are no log messages in sponsorblockcast when the API fails so that should be added.