First of all I think this feature is not needed for the average youtuber that uploads some videos a day/week/month to youtube. This feature would however become a requirement if Prismedia is used by peertube instance to propose a "mirror to youtube" button. The users and admin would know if they can upload more or not for the day. And with a bit more of logic the instance itself can then rearrange uploads around quotas and youtube’s publish date. Maybe this would need #27 and that automatic upload also takes this information into account.
In a way I see a configuration file (option in the NFO?) that tell the program how much of Youtube’s quota has been used.
Prismedia would then need to store in a file how much data is currently used and a date (last use of quota or next reset time).
Each call to a youtube’s API would need an overload function that add the cost of that call and reset the quota when youtube is doing so.
For advanced use, a way to do a
dry-run of upload to know in advance if the quota is enough to do all the required steps of upload could also be useful.