SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #761  
Old 03-29-2019, 05:50 PM
Beaker's Avatar
Beaker Beaker is offline
Sage User
 
Join Date: Oct 2005
Location: Central Iowa
Posts: 70
Quote:
Originally Posted by robogeek View Post
Just a note to let everyone know the YouTube API sorting is fixed and the YouTube plugin appears to be working normally again
It is not working correctly for me. My Wiz.bin still climbs to ludicrous size very quickly. Perhaps this is rolling out slowly to certain individuals?
__________________
"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
Reply With Quote
  #762  
Old 03-29-2019, 10:35 PM
robogeek robogeek is offline
Sage Expert
 
Join Date: Apr 2003
Location: Appleton, WI USA
Posts: 568
In the cases where the plugin still doesn't seem to be working correctly, I suspect the plugin may be picking up the previously queued videos from when the sorting issue first started. You may have to go into the YouTube Recording Engine configuration (Setup->SageTV Plugins->Installed Plugins->General->YouTube Recording Engine->Configure Plugin) and find the option in there to purge the download queue.

<EDIT>
Nevermind, I see what you guys are talking about now. My YouTube favorites seem to be downloading new videos normally. But I see the video lists from within the YouTube (2015) plugin seem to be messed up for some YouTube channels, but not all. Not sure yet about what is going on there. But I think the growing wiz.bin is likely related to the download queue that needs to be purged.

<EDIT 2>
Upon further checking... my messed up looking favorite YouTube channels had the favorite option 'Fetch Watched Videos' set to Disable instead of Enabled, so there were gaps with only a couple of the most recent unwatched videos at the top of the list which were followed by much older unwatched videos. After ensuring the 'Fetch Watched Videos' was set to Enabled for all of my favorite YouTube channels, it appears the plugin is properly fetching the video lists which are properly sorted by date (newest to oldest). My wiz.bin also looks like it's maintaining a stable and expected size between 140MB and 150MB.
__________________
--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

Last edited by robogeek; 03-30-2019 at 02:33 AM.
Reply With Quote
  #763  
Old 03-30-2019, 02:48 AM
robogeek robogeek is offline
Sage Expert
 
Join Date: Apr 2003
Location: Appleton, WI USA
Posts: 568
I did notice one other issue with about a dozen YouTube videos from channels that I have set as Favorites. These videos won't download and will drop off of the queue and get queued again later, and they keep repeating that cycle. I don't know if it's a problem with youtube-dl.exe taking too long to get to the video download or if it's a problem with the YouTube plugin not waiting long enough and declaring the job dead and killing it before it starts downloading:

Code:
Sat 3/30 2:00:39.925 [Timer-28@4b8f546a] YT: JobManager.startFirstInQueue: Starting job.
Sat 3/30 2:00:39.926 [Timer-28@4b8f546a] YT: JobManager.startFirstInQueue: Started gS-rVPbVGYk
Sat 3/30 2:00:39.926 [Timer-28@4b8f546a] YT: MonitorJob: Job is done. 2f-gZwdTFyo
Sat 3/30 2:00:39.926 [Thread-113388@32a5f61e] YT: DownloadVideo: Starting new download.
Sat 3/30 2:00:39.926 [Timer-28@4b8f546a] YT: Videos.getVideoInfo: Returning results from cache.
Sat 3/30 2:00:39.926 [Thread-113388@32a5f61e] YT: DownloadVideo.executeDownloadWindows: targetDirectory specified <youtube_downloads\>
Sat 3/30 2:00:39.927 [Timer-28@4b8f546a] YT: Util.getAllDownloadedFiles: No files in directory <C:\Program Files\SageTV\SageTV\youtube_downloads>
Sat 3/30 2:00:39.927 [Timer-28@4b8f546a] YT: MonitorJob.renameAndMoveFile: No files found.
Sat 3/30 2:00:39.931 [Thread-113388@32a5f61e] YT: DownloadVideo.executeDownloadWindows: Command [youtube-dl.exe, --restrict-filenames, --no-part, -f, best, -o"youtube_downloads\%(id)s.%(ext)s", gS-rVPbVGYk]
Sat 3/30 2:00:39.932 [Timer-28@4b8f546a] YT: MonitorJob: renamedFile is null. Exiting.
Sat 3/30 2:00:39.935 [Thread-113383@92d741c] YT: DownloadVideo.executeDownloadWindows: youtube-dl has exited.
Sat 3/30 2:00:42.328 [Thread-113390@786866b1] YT: StreamGetter: stdout: [youtube] gS-rVPbVGYk: Downloading webpage
Sat 3/30 2:01:03.974 [Thread-113390@786866b1] YT: StreamGetter: stdout: [youtube] gS-rVPbVGYk: Downloading video info webpage
Sat 3/30 2:01:09.925 [Timer-28@4b8f546a] YT: MonitorJob: Looking for Client requests.
Sat 3/30 2:01:09.925 [Timer-28@4b8f546a] YT: MonitorJob: Found a runnning job. gS-rVPbVGYk
Sat 3/30 2:01:09.925 [Timer-28@4b8f546a] YT: MonitorJob: Job has not yet completed.
Sat 3/30 2:01:09.925 [Timer-28@4b8f546a] YT: MonitorJob: Job is progressing.
Sat 3/30 2:01:39.925 [Timer-28@4b8f546a] YT: MonitorJob: Looking for Client requests.
Sat 3/30 2:01:39.925 [Timer-28@4b8f546a] YT: MonitorJob: Found a runnning job. gS-rVPbVGYk
Sat 3/30 2:01:39.925 [Timer-28@4b8f546a] YT: MonitorJob: Job has not yet completed.
Sat 3/30 2:01:39.925 [Timer-28@4b8f546a] YT: MonitorJob: Job is not progressing. Stopping it.
Sat 3/30 2:01:39.925 [Timer-28@4b8f546a] YT: DownloadVideo.stop: Stopping.
Sat 3/30 2:01:39.926 [Timer-28@4b8f546a] YT: JobManager.updateUserRecord: jobQueue sise = 9
Sat 3/30 2:01:39.926 [Timer-28@4b8f546a] YT: MonitorJob: Finished job removed from queue gS-rVPbVGYk
If I run the youtube-dl command with the parameters specified in the log snippet above, it does download the video. The only thing is, it takes about 90 to 120 seconds from initiating the command until the video download actually begins. It looks like the YouTube plugin is giving up and killing the youtube-dl process after 60 seconds? I did run youtube-dl with the -U update switch to update to the latest version to see if that would help, but this issue still remains. And I'm not sure why this is only happening to a fairly small portion of videos.
__________________
--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
Reply With Quote
  #764  
Old 03-31-2019, 12:47 PM
robogeek robogeek is offline
Sage Expert
 
Join Date: Apr 2003
Location: Appleton, WI USA
Posts: 568
OK, here's what I've been able to figure out...

Most downloads of Favorites work without issue, but some aren't working through the YouTube Download Engine because the youtube-dl program is taking too long to proceed to the actual downloading step and the plugin appears to be interpreting that long delay as a failure and killing the process. (See log snippet in previous post). Playing videos from within the YouTube (2015) plugin works, it's just the favorites and manual recording of the videos that appears to be failing for a certain subset of videos.

I've traced the delay down to the downloading of the DASH manifest that is done by the youtube-dl program. The good news is there is a command line switch (--youtube-skip-dash-manifest) that disables the downloading of the DASH manifest and greatly reduces the delay between the time youtube-dl is started and the time it starts downloading the requested video. Ideally, this command switch would be added to the YouTube Download Engine plugin, or perhaps a new plugin config option added to allow custom youtube-dl command line switches to be specified. Alternatively, instead of adding this command line switch, the YouTube Download Engine could be updated so the youtube-dl watchdog timer is longer or possibly made configurable as a new plugin config option.

Caveat for the following workaround... I don't know if this is or will adversely affect other parts of the YouTube plugin, but everything appears to be working normally with no apparent errors:

Fortunately the youtube-dl program can accept additional command line switches via a config file. (https://github.com/ytdl-org/youtube-...#configuration) Linux should be fairly straight forward. I use Windows so I'll document the Windows stuff here. The documentation on github is slightly incorrect in that the C:\User\..... location specified is incomplete. If you are experiencing this issue of some favorites not being downloaded, create a file called config.txt and put in this command line switch:

--youtube-skip-dash-manifest

Then you need to figure out where to put this config.txt file. Whether you run SageTV (standalone) or SageTVService, you need to know which user account it is running under (the youtube-dl process will start under the same user account the SageTV process is running under). You can find this in the Services control panel or by checking the appropriate SageTV process in the Details tab of the Windows Task Manager. If running under a real user account, the config.txt file would be stored in this directory (create youtube-dl directory if it doesn't exist):

C:\Users\<user account>\AppData\Roaming\youtube-dl

Replace <user account> with the actual name of the user account. If you are running SageTVService under the LocalSystem or some other exotic account type, you'll have to use Google to figure out the appropriate %APPDATA% location for that account, unless someone else contributes that knowledge in a reply here.

Also, in the process of working through this, I have found the Video Format config option in the YouTube Recording Engine plugin always remains set to best. I can't seem to change it from my HD300 extenders or from the plugin manager in the web UI. I can only change it by shutting down the service and manually altering the property in the sage.properties file.
__________________
--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
Reply With Quote
  #765  
Old 04-06-2019, 04:25 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I received notification from Google that the bug impacting this plugin has been fixed.
__________________

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.
Reply With Quote
  #766  
Old 04-27-2019, 04:23 PM
gary201 gary201 is offline
Sage Advanced User
 
Join Date: Dec 2010
Location: Rochester NY
Posts: 150
This morning I think I noticed a new problem. When you go to watch a video, the plug-in displays "downloading video info webpage" and doesn't proceed any further. It happens to all of my Favorites. I assume Google is mucking around some more on their site again. Does anyone know if this is a temporary thing (another Google mess up) or something where the plug-in will need updating?
Reply With Quote
  #767  
Old 04-28-2019, 04:54 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by gary201 View Post
This morning I think I noticed a new problem. When you go to watch a video, the plug-in displays "downloading video info webpage" and doesn't proceed any further. It happens to all of my Favorites. I assume Google is mucking around some more on their site again. Does anyone know if this is a temporary thing (another Google mess up) or something where the plug-in will need updating?
Whenever something like this happens the first thing you should do is update youtube-dl. Just replace the one already in your sage directory.

https://ytdl-org.github.io/youtube-dl/
__________________

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.
Reply With Quote
  #768  
Old 04-30-2019, 04:41 PM
gary201 gary201 is offline
Sage Advanced User
 
Join Date: Dec 2010
Location: Rochester NY
Posts: 150
That worked. Thanks!
Reply With Quote
  #769  
Old 07-21-2019, 01:55 PM
Rob23 Rob23 is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 101
I've encountered an issue with this plugin in which videos begin playing for five seconds at which time the audio continues as normal, but the video is frozen. I can fast forward and the video will resume for three to five seconds and freezes again with the audio continuing. This only occurs on my HD200 extender. I am able to play videos as normal on my server. I have updated to the latest youtube-dl (2019.07.16) as well as uninstalled the plugin and reinstalled with no change in the video freezing behavior.

Does anyone have any idea what could be causing this?
__________________
Sage Server: Core 2 Quad Q9550 2.83GHz, Windows 7 x64, Hauppauge WinTV-quadHD, AverMedia M780. HD200 Extender.
Reply With Quote
  #770  
Old 07-21-2019, 04:17 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by Rob23 View Post
I've encountered an issue with this plugin in which videos begin playing for five seconds at which time the audio continues as normal, but the video is frozen. I can fast forward and the video will resume for three to five seconds and freezes again with the audio continuing. This only occurs on my HD200 extender. I am able to play videos as normal on my server. I have updated to the latest youtube-dl (2019.07.16) as well as uninstalled the plugin and reinstalled with no change in the video freezing behavior.

Does anyone have any idea what could be causing this?
I’ve had this happen lately on my HD300s.
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #771  
Old 07-22-2019, 03:35 PM
Rob23 Rob23 is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 101
Quote:
Originally Posted by SteveW View Post
I’ve had this happen lately on my HD300s.
In the past year, it would happen to me occassionally, but not consistently. Usually, updating the youtube-dl file would resolve the issue. For the past couple of months, it happens on almost every video, and every update to the youtube-dl file I've installed has not resolved the issue.
__________________
Sage Server: Core 2 Quad Q9550 2.83GHz, Windows 7 x64, Hauppauge WinTV-quadHD, AverMedia M780. HD200 Extender.
Reply With Quote
  #772  
Old 07-28-2019, 12:40 PM
Rob23 Rob23 is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 101
Can anyone confirm for me that the plugin is working correctly for them? I am trying to determine if it is something on my end or an issue with the current youtube-dl.
__________________
Sage Server: Core 2 Quad Q9550 2.83GHz, Windows 7 x64, Hauppauge WinTV-quadHD, AverMedia M780. HD200 Extender.
Reply With Quote
  #773  
Old 07-29-2019, 02:39 PM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
Quote:
Originally Posted by Rob23 View Post
Can anyone confirm for me that the plugin is working correctly for them? I am trying to determine if it is something on my end or an issue with the current youtube-dl.
I'm having the same issue that you describe above.
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200)
Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200)
Reply With Quote
  #774  
Old 08-29-2019, 08:26 PM
NoodleNT NoodleNT is offline
Sage Advanced User
 
Join Date: Mar 2011
Location: DC
Posts: 197
Mine hasn’t worked correctly since it went on the download craze a few months ago. My queue will say over 280 shows but nothing ever downloads. I have reset it a few times using the purge option but nothing changes. When I manually try and watch a show I get the message content must be downloaded before playback and then a random Info:[youtube] message.

If a new DLL fixes this, can you please update the repository so SageTV can see there is a plugin update?

Thanks.
Reply With Quote
  #775  
Old 08-30-2019, 05:30 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by NoodleNT View Post
Mine hasn’t worked correctly since it went on the download craze a few months ago. My queue will say over 280 shows but nothing ever downloads. I have reset it a few times using the purge option but nothing changes. When I manually try and watch a show I get the message content must be downloaded before playback and then a random Info:[youtube] message.

If a new DLL fixes this, can you please update the repository so SageTV can see there is a plugin update?

Thanks.
Sorry but I will not be able to look at this for a while. I'm currently in the cross hairs of Dorian and then I'll be out of the country for a week or so. I'll look at it when I get back.

The first thing you should always do is download the latest youtube-dl and overwrite the existing one. https://ytdl-org.github.io/youtube-dl/index.html
__________________

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.
Reply With Quote
  #776  
Old 09-02-2019, 07:49 PM
Thomas Wischgol's Avatar
Thomas Wischgol Thomas Wischgol is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 276
Sorry to hear you are affected by the storm. I hope you stay safe down there. Regarding the previous post, downloading a new youtubedll.exe might help (see post #767). Youtube is working fine over here but I did have to update the youtubedll.exe manually. It will not work with the one downloaded from Sage's repository.
Reply With Quote
  #777  
Old 10-12-2019, 02:19 PM
gary201 gary201 is offline
Sage Advanced User
 
Join Date: Dec 2010
Location: Rochester NY
Posts: 150
I've been noticing a new problem viewing YouTube videos over the past few weeks that seems to affect some, but not all videos. It looks like the YouTube download is aborting, and although there is an indication that a retry is going to happen, that doesn't actually seem to be taking place.

Here is a log snippet from a short bit ago.

Sat 10/12 16:10:57.370 [EventRouter-0023a50006bc@473ece1c] YT: About to play PH0myD3Jbno
Sat 10/12 16:10:57.372 [EventRouter-0023a50006bc@473ece1c] YT: Start downloading.
Sat 10/12 16:10:57.375 [ReProcessHook@350a1798] YT: GetFormat: Returning results from cache.
Sat 10/12 16:10:57.376 [ReProcessHook@350a1798] YT: GetFormat.startFetch: In cache.
Sat 10/12 16:10:57.376 [ReProcessHook@350a1798] YT: GetFormat.isReady: In cache.
Sat 10/12 16:10:57.376 [ReProcessHook@350a1798] YT: GetUrl.startFetch: In cache.
Sat 10/12 16:10:57.376 [ReProcessHook@350a1798] YT: Format = mp4
Sat 10/12 16:10:57.377 [ReProcessHook@350a1798] YT: Expected file name PH0myD3Jbno.mp4
Sat 10/12 16:10:57.377 [Thread-2291@3bbc8895] YT: DownloadVideo: Starting new download.
Sat 10/12 16:10:57.378 [Thread-2291@3bbc8895] YT: DownloadVideo.executeDownloadLinux: Command ./youtube-dl --restrict-filenames --no-part -f best -o%(id)s.%(ext)s PH0myD3Jbno
Sat 10/12 16:10:57.466 [ReProcessHook@d518957] YT: Saving screen saver timeout.
Sat 10/12 16:11:01.195 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [youtube] PH0myD3Jbno: Downloading webpage
Sat 10/12 16:11:02.062 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [youtube] PH0myD3Jbno: Downloading video info webpage
Sat 10/12 16:11:02.727 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] Destination: PH0myD3Jbno.mp4
Sat 10/12 16:11:02.991 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout:
Sat 10/12 16:11:02.991 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.0% of 293.97MiB at Unknown speed ETA Unknown ETA
Sat 10/12 16:11:02.992 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.0% of 293.97MiB at 26.47KiB/s ETA 03:09:32
Sat 10/12 16:11:02.992 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.0% of 293.97MiB at 56.59KiB/s ETA 01:28:39
Sat 10/12 16:11:02.992 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.0% of 293.97MiB at 116.77KiB/s ETA 42:57
Sat 10/12 16:11:02.993 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.0% of 293.97MiB at 236.94KiB/s ETA 21:10
Sat 10/12 16:11:03.020 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.0% of 293.97MiB at 476.65KiB/s ETA 10:31
Sat 10/12 16:11:03.224 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.1% of 293.97MiB at 870.07KiB/s ETA 05:45
Sat 10/12 16:11:03.224 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout: [download] 0.2% of 293.97MiB at 968.10KiB/s ETA 05:10[download] Got server HTTP error: Downloaded 493043 bytes, expected 308253755 bytes. Retrying (attempt 1 of 10)...
Sat 10/12 16:11:03.477 [Thread-2293@2eab3e9f] YT: StreamGetter: stdout:
Sat 10/12 16:11:03.500 [Thread-2293@2eab3e9f] YT: StreamGetter: Duplicate lines = 2:
Sat 10/12 16:11:03.500 [Thread-2291@3bbc8895] YT: DownloadVideo.executeDownloadLinux: youtube-dl has exited.
Sat 10/12 16:11:10.120 [EventRouter-0023a50006bc@473ece1c] YT: DownloadVideo.stop: Stopping.
Sat 10/12 16:11:10.469 [ReProcessHook@d518957] YT: DownloadVideo.stop: Stopping.
Sat 10/12 16:11:10.469 [ReProcessHook@d518957] YT: Deleted PH0myD3Jbno.mp4
Sat 10/12 16:11:10.470 [ReProcessHook@d518957] YT: Restoring screen saver timeout.


The problem does seem to persist for those videos that are failing (e.g. after a week or so, the same problem occurs). The videos are vieable from a browser or from the YouTube app on my iPhone. I gather this is an issue w/youtube-dl? I'm using the current version from 19.09.28. Anyone else observe this?

Last edited by gary201; 10-12-2019 at 02:31 PM.
Reply With Quote
  #778  
Old 10-12-2019, 02:39 PM
gary201 gary201 is offline
Sage Advanced User
 
Join Date: Dec 2010
Location: Rochester NY
Posts: 150
I'm going to assume this is an issue with youtube-dl, since I can repeat the problem (doing this from the youtube_downloads subdir since I didn't know what would get downloaded):

gary@media3 /opt/sagetv/server/youtube_downloads $ ../youtube-dl --restrict-filenames --no-part -f best PH0myD3Jbno
[youtube] PH0myD3Jbno: Downloading webpage
[youtube] PH0myD3Jbno: Downloading video info webpage
[download] Destination: First_McDonalds_Emma_s_Cafe_Trigger_the_Horse_More_Route_66_Finds-PH0myD3Jbno.mp4
[download] 0.2% of 293.97MiB at 2.36MiB/s ETA 02:04[download] Got server HTTP error: Downloaded 466871 bytes, expected 308253755 bytes. Retrying (attempt 1 of 10)...


ERROR: Did not get any data blocks
gary@media3 /opt/sagetv/server/youtube_downloads $

Then trying it again (w/o deleting what had previously been downloaded):

gary@media3 /opt/sagetv/server/youtube_downloads $ ../youtube-dl --restrict-filenames --no-part -f best PH0myD3Jbno
[youtube] PH0myD3Jbno: Downloading webpage
[youtube] PH0myD3Jbno: Downloading video info webpage
[download] Resuming download at byte 466871


ERROR: Did not get any data blocks
gary@media3 /opt/sagetv/server/youtube_downloads $
Reply With Quote
  #779  
Old 02-22-2020, 07:28 AM
gary201 gary201 is offline
Sage Advanced User
 
Join Date: Dec 2010
Location: Rochester NY
Posts: 150
Found a new issue today with the YouTube plugin (likely something Google has done). When I scroll down the initial list to "Browse favorite channels", I see a short list of my favorites on the right. When I then click on that entry, I get a message "There are no favorite channels". Well, that's not right since a list of some of them are displayed on the main menu screen.

I extracted the sagetv log entries that occur when that error occurs, which is pasted below. I should note that I went through the process of logging off Youtube, logging back in and entering the device code as prompted, just to make sure this wasn't a login issue. I also went to the URL string listed just to see what was there, but got a "failed to load" error on that web page.

Code:
Sat 2/22 8:22:39.624 [EventRouter-0023a50006bc@650e6633] processUserEvent-UserEvent[select] evtTime=Sat 2/22 8:22:39.617
Sat 2/22 8:22:39.624 [EventRouter-0023a50006bc@650e6633] processOptionsMenu optionsMenu=default:TMIR-599561|OptionsMenu:FavChanWait
Sat 2/22 8:22:39.626 [Fork-TMIR-599568@14e616da] YT: Channels.getAllFavoriteVideos: ChannelIds(encrypted strings removed)
Sat 2/22 8:22:39.627 [Fork-TMIR-599568@14e616da] YT: DeviceAuth.getUsableAccessToken: Returned valid access code:(encrypted string removed)
Sat 2/22 8:22:39.627 [Fork-TMIR-599568@14e616da] YT: Quota.addQuota: Total quota usage is now 1284302
Sat 2/22 8:22:39.629 [FinalRender-0023a50006bc@774c44c6] MiniClient did not succeed with menu hint change to:menuName:YouTube Using the V3 API, popupName:FavChanWait, hasTextInput:false, errcode=1
Sat 2/22 8:22:39.743 [Fork-TMIR-599568@14e616da] YT: Channels.getChannelForId: 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.com/apis/api/youtube.googleapis.com/overview?project=679168243199 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Sat 2/22 8:22:39.743 [Fork-TMIR-599568@14e616da] YT: Favorites 0
Sat 2/22 8:22:39.744 [Fork-TMIR-599568@14e616da] YT: DeviceAuth.getUsableAccessToken: Returned valid access code:(encrypted string removed)
Sat 2/22 8:22:39.744 [Fork-TMIR-599568@14e616da] YT: DeviceAuth.getUsableAccessToken: Returned valid access code:(encrypted string removed)
Sat 2/22 8:22:39.744 [Fork-TMIR-599568@14e616da] YT: Quota.addQuota: Total quota usage is now 1284308
Sat 2/22 8:22:39.844 [Fork-TMIR-599568@14e616da] 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.com/apis/api/youtube.googleapis.com/overview?project=679168243199 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Sat 2/22 8:22:39.844 [Fork-TMIR-599568@14e616da] YT: Subscriptions.getSubscriptionsForAuthorizedUser: Size of items 0
Sat 2/22 8:22:39.844 [Fork-TMIR-599568@14e616da] YT: User is subscribed to 0
Sat 2/22 8:22:39.844 [Fork-TMIR-599568@14e616da] YT: Total 0
Sat 2/22 8:22:39.897 [ReProcessHook@268b259a] processOptionsMenu optionsMenu=default:TMIR-91968|OptionsMenu:Display Message Dialog
Sat 2/22 8:22:39.903 [FinalRender-0023a50006bc@774c44c6] MiniClient did not succeed with menu hint change to:menuName:YouTube Using the V3 API, popupName:Display Message Dialog, hasTextInput:false, errcode=1
Edit: As a followup, I also discovered that the same issue may be occurring with the PlayOn.tv app as it can't see YouTube video content either for any of my subscribed channels.

Last edited by gary201; 02-22-2020 at 07:41 AM.
Reply With Quote
  #780  
Old 02-22-2020, 10:04 AM
Beaker's Avatar
Beaker Beaker is offline
Sage User
 
Join Date: Oct 2005
Location: Central Iowa
Posts: 70
Same Thing Here

This seems to be the pertinent bit from the log...
Sat 2/22 9:35:15.439 [Timer-1@98de03] 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.

Sat 2/22 9:35:15.441 [Timer-1@98de03] YT: Subscriptions.getSubscriptionsForAuthorizedUser: Size of items 0

Sat 2/22 9:35:15.443 [Timer-1@98de03] YT: FavoriteManager: Terminating due to exception null
I tried visiting the URL specified. It returns the following...
There was an error while loading /apis/api/youtube.googleapis.com/overview?project=679168243199. Please try again.
It isn't my project, so I'm not surprised.

I believe google has been changing things lately. I saw something about a desktop change set for early Feb2020. Could be related, I suppose.
https://support.google.com/youtube/t...27596769?hl=en
__________________
"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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 07:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.