|
SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer. |
|
Thread Tools | Search this Thread | Display Modes |
#781
|
||||
|
||||
The API has hit a quota limit. Since I do not pay, limits are set on the number and type of queries that can be done over certain periods of time. The quota for some of the APIs have been exceeded due to a big spike on 2/21.
I think the error will go away when the usage stats are reset. I don't know exactly when that will be because I've never seen this error before.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. Last edited by tmiranda; 02-23-2020 at 06:47 AM. |
#782
|
|||
|
|||
That's interesting because the same issue is happening with the PlayOn Windows application as well. I can see what I've subscribed to, but nothing is visible.
|
#783
|
|||
|
|||
I also have the same issue, and it started mid morning on the 21st.
Is it possible the transaction count spiked because of some sort of error that sent the code into a retry? Love the functionality and the hard work that went into developing it. Is there any additional information can I provide to help with this issue? |
#784
|
||||
|
||||
Quote:
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#785
|
|||
|
|||
Who owns the project for the API used? Is it yours or someone out on GitHub or somewhere? I did some searching around and there are comments on the net from the past where the quota needed to be increased. I've no idea whether that applies here or not, but it certainly seems plausible given what you reported earlier.
|
#786
|
||||
|
||||
Quote:
I'm not sure what changed in the first place. Maybe because I haven't done anything with the project for a while?
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#787
|
||||
|
||||
Maybe this is due to COPPA compliance attempts?
__________________
"Worry does not empty tomorrow of its sorrow; it empties today of its strength." Corrie Ten Boom Core-i5 6600k 16GB RAM Hauppauge WinTV-QuadHD Win10 |
#788
|
||||
|
||||
I just updated the quota limit. Let me know if it's working or not.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#789
|
|||
|
|||
Quote:
From the Log file: Fri 2/28 9:41:47.345 [Timer-3@3de4e07d] YT: Subscriptions.getSubscriptionsForAuthorizedUser: JSON error. 403 : Access Not Configured. YouTube Data API has not been used in project 679168243199 before or it is disabled. Enable it by visiting https://console.developers.google.co...t=679168243199 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. |
#790
|
|||
|
|||
This was annoying me so I started doing some of my own research. I went over to Google developers and set up my own API key. You see, after some poking around I discovered that this plugin does not hard code the API Keys it uses. The API Keys are a folder named YouTube.properties in the root stageTV directory. You can create your own key, it's free with limitations of course. Most notably being the quota limit that's causing all the problems here. I was up and running in moments but I made some disturbing discoveries. I really don't think any of your Solutions are going to work. The YouTube data API has a quota limit of 10,000 queries for a free account. A routine download of my favorite channels videos amounted to over a thousand queries. I don't know if this is normal behavior for the Plug-In or if this represents a change of its interaction with the API. You really need to check on this. Also, I would like to know if this thing should be making any queries when it's not in use. Anyways, with multiple users on a shared API key I don't see how this thing could really function at all. However, until recently it was working just fine so I don't know if something changed. By the way, I'm just using an API key. I'm not bothering to use an OAuth 2.0 key because I discovered that that's only needed if you intend to log into YouTube. I never use this plug-in that way so I don't need it. I changed my download check frequency to once every 24 hours. for the next couple of days I'll keep track of how many queries SageTV makes to see if this works all right.
|
#791
|
||||
|
||||
Thanks for looking in to this! It has become my most used way of watching any video media.
For what it's worth I'm still seeing the same behavior and error in logs as jerrym.
__________________
"Worry does not empty tomorrow of its sorrow; it empties today of its strength." Corrie Ten Boom Core-i5 6600k 16GB RAM Hauppauge WinTV-QuadHD Win10 |
#792
|
|||
|
|||
Quote:
Like many others, this plugin has become a key part of my video-watching experience. As far as I'm concerned, if this means generating my own API key, I'm fine with that. Also, in case I forget to say so later, thank you tmiranda. Your plugin is wonderful. |
#793
|
||||
|
||||
Quote:
Generating your own key as you described will work. That's the main reason I put the key in the properties file. (Clearly, this would not be a good thing to do if the plugin was a "real" project.)
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#794
|
|||
|
|||
Is that something you think we're all going to need to do (create our own keys)?
|
#795
|
|||
|
|||
I tried to create my own key and put it in the properties file, but it is not working for me. I am not getting the error message in log file anymore.
I do login to YouTube, so that might be a difference. Could someone help with some instructions on how to properly create and configure the API key? |
#796
|
|||
|
|||
Quote:
|
#797
|
|||
|
|||
Success!
I finally sat down and created my own API key this morning, and it seems to be working. Thank you to everyone who has put hard work into building this wonderful program and debugging the latest issue.
For those who having trouble navigating the less-than-straightforward process of creating an API key, here's what I had to do:
I may have missed something. But those are the important things. |
#798
|
|||
|
|||
So much for success.
I created my own API key earlier this morning. For about twenty minutes, it worked.
But within that short span, the quota has already reached 9756 queries. Now, the log file is full of lines like these: Quote:
Quote:
Also, during the short period that it worked, it downloaded five videos... but downloaded them to the "youtube_downloads" subdirectory in the SageTV directory, not the directory where they're configured to go. I don't know if it'll help, but I've attached the log file for that time period. |
#799
|
|||
|
|||
Just to add to this, in addition to using my own YouTube Data API key, oAuth key, and oAuth Client Secret, I also went into the YouTube (2015) options menu to change a few settings to prevent it from blowing through the laughably low 10000 unit quota limit that someone at YouTube actually thought was a good idea.
For full disclosure, I don't use the YouTube (2015) plugin for browsing or searching for YouTube content. I only use the Browse Favorite Channels menu item to manage my channel favorites when needed. I don't use the What's New, Recommended For You, My YouTube Channel, Best of YouTube, or any of those other menu items in the plugin. I suspect using those other menu items will quickly blow through the 10000 unit quota limit. I use the YouTube (2015) plugin strictly for recording new videos from 25 different YouTube channels (and averaging less than 4000 of the 10000 quota units per day) and have not had any trouble since making the following additional changes... YouTube Menu Options: - YouTube Menu Options >> Maximum Items to Fetch I set Maximum Items to Fetch to the lowest number, 50. I believe the YouTube Data API still returns results in sets of up to 50 with a specific quota usage per 50 results. That is, a search request that returns 1 result would have the same quota usage as a search request that returns 50 results. A request that returns 51 to 100 results would have double the quota usage of a request that returns 1 to 50 results. - YouTube Menu Options >> Recording Options >> Favorite Check Interval I set this to 24 so it only checks for favorites once per day. Checking two or three times per day (or more) will result in two or three times (or more) the quota usage that pertains to checking for new videos on your channel favorites. - YouTube Menu Options >> Advanced Options >> Include Keyword Favs in "What's New" I set this option to Disabled. I'm not sure if it helps, but anything that looks like it may generate quota usage should be disabled if it is not absolutely needed. For each of my YouTube channel favorites, these are the Favorite Options: - Fetch Watched Videos: Disabled - Include in "What's New": Disabled - Record New Episodes: Enabled - Get Episodes Since/From: 'A Week Ago' ** - Re-Record Deleted Episodes: No - Minimum Duration: Any Duration - Simulate (Do not record): Disabled ** I'm not sure how the plugin code is written regarding the API requests for new episodes, so it may be necessary to set this option to 'A Week Ago' on a regular basis...maybe once a month or once every few months, etc... depending on how many channel favorites are set and how often videos are released on the channel favorites. If the daily quota usage slowly creeps up over time, resetting this setting to 'A Week Ago' again may bring quota usage back down.
__________________
--Jason Server Hardware: GIGABYTE GA-EP45-UD3R, Intel Q9550 CPU 2.83GHz, 11GB RAM, 1xHDHR, 1xHVR1600, 1xHVR2250 29TB Server Storage: 1TB SSD (OS), 1TB (data), 2x6TB+2x10TB (22TB FlexRaid storage pool), 2x2TB (recordings), 1x750GB (VMs). Server Software: Win10 Pro x64 OS, SageTV 64bit v9.2.0.441, Java 1.8 u241, PlayOn, Comskip (Donator) v0.82.003, WampServer v2.5. Clients: 3xHD300s, 2xHD100, 2xPlaceshifters |
#800
|
|||
|
|||
I can't help but wonder what other PVR implementations are doing for YouTube. Are they equally affected or do they have a completely different implementation so that they are unaffected by whatever change Google has done here? Or is it the case that all PVR solutions will require each user to create their own projects, keys tokens, etc.?
One interesting coincidence is that PlayOn may similarly be affected. I similarly noticed that the PlanOn Windows app can't see that anything exists for any of my subscribed YouTube channels. The folks at PlayOn insist they can't reproduce this, and I've insisted that I'm not going to give them my Google credentials for further debugging (for obvious reasons since that gives them access to email, and other things authenticated by Google). Is it possible that the YouTube plugin for Sage could be affecting the ability for PlayOn to also see that same content? |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plex Hacked July 1, 2015 | tvmaster2 | General Discussion | 5 | 07-08-2015 02:43 AM |
Will 2015 leap second effect SageTV? | Paul H | SageTV Software | 10 | 01-16-2015 07:43 AM |
Merry Christmas & Happy New Year 2015 | SHS | General Discussion | 25 | 01-01-2015 08:59 PM |
Plugin request for SageTV Windows Client: Autofrequency plugin | mkanet | SageTV v7 Customizations | 3 | 11-12-2011 09:33 AM |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |