NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 2 3 4 5 6 … 20 Next »
YouTube Plugin

 
  • 0 Vote(s) - 0 Average
YouTube Plugin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#491
2013-12-30, 05:05 PM
That file would only help the client UI read the output of the parser.aspx. It would not actually help the parser.aspx do it's job. Strangely, that video works fine for me. can you navigate to http://<server>:8866/public/youtube/parser.aspx?v=W1tzURKYFNs then zip and post the source code (or email it to me)?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,027
Threads: 957
Joined: May 2006
#492
2013-12-30, 05:20 PM
It didn't work from the URL either so I thought to restart the recording service and it works now. I don't know why I didn't think about that before.

For those new to the YouTube plugin the best news bloopers of 2013 has some funny moments.

Happy New Year

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#493
2013-12-30, 05:55 PM
mvallevand Wrote:It didn't work from the URL either so I thought to restart the recording service and it works now. I don't know why I didn't think about that before.
Awesome.

mvallevand Wrote:For those new to the YouTube plugin the best news bloopers of 2013 has some funny moments.

Happy New Year

Martin
I will try to check it out tonight.
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#494
2013-12-31, 04:36 PM (This post was last modified: 2013-12-31, 04:43 PM by liteswap.)
whurlston Wrote:Some of the encryption algorithms have changed and the youtube-dl project have moved to an auto decrypt routine instead of updating the decryption routines that I was pulling from them. I've known about the issue for a while but never had time to look into it until now.

Attached is a patch that should fix the problem.

Instructions for patch:
  1. Replace the "Plugins\YouTube\youtube.*" files with the matching files in the zip (.dll and .pdb). (Exit NextPVR first.)
  2. Place "parser.aspx" from the zip in your "web\public\youtube" folder. All other files in this folder can be removed because they are no longer used by this patch. It doesn't hurt anything to leave them though.

This patch no longer relies on the youtube-dl project. It now finds and uses the javascript decryption routines directly from youtube.


Separate error. Are you able to copy and post the error text (wrap in a code tag or upload it as an attachment)?

Thanks! 'Filename too long' error is attached.

In addition, I can't see any difference in behaviour with the new dll, I'm afraid...
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#495
2013-12-31, 04:49 PM
The error is being thrown by AutoRefresh. Specifically the function AutoRefresh.AutoRefresh.GetFromOverride(String path). I will need to look at the code in AutoRefresh to determine exactly what file/path that function is checking (whether it is an override file or the video file) . Ian sent me the code in the past, I just need to dig it out. If you disable AutoRefresh, do you get the error?
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#496
2014-01-01, 02:59 AM
I found that videos were taking much longer to buffer with the latest patch and with some debugging, I found that the two calls to the YouTube servers in parser.aspx were taking about 10 seconds each to return. I modified StreamerPost with some tweaks (that I use in CookieAwareWebClient) but they had no effect. I can only conclude that it is an issue with the cs files needing to be compiled at runtime in the webserver and not an issue with NEWA itself.

This patch moves the parser and automatic signature decryption code to the plugin dll. Now, the calls to the youtube server return in about 0.8 seconds instead of 18-20. This deprecates the web/public/youtube files completely (not the direction I wanted to go but the performance was just too slow for me).

The patch also fixes a couple of bugs that could cause NextPVR to crash if it tried to retrieve a nonexistent feed list.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#497
2014-01-01, 04:30 AM
whurlston Wrote:I can only conclude that it is an issue with the cs files needing to be compiled at runtime in the webserver and not an issue with NEWA itself.

Correct..... but the compile is one-time then the compiled version is pulled from temp asp.net folder until a change is detected.... so it would not cause a consistent issue.....
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#498
2014-01-01, 04:48 AM
That's what I thought but for some reason, it still consistently took ~20 seconds for the call to parser.aspx to return for me.

I'll be releasing the code soon anyway (after some cleanup) so I'll leave it with the parser code in the dll for now.

Here's a patch to fix a stupid error on my part. PC clients with NMTModeAlwaysOn=false would play the lowest quality preferred stream. Running in NMTMode (PC clients with flag set to true or NMT clients) and WebClients were not affected by this.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,027
Threads: 957
Joined: May 2006
#499
2014-01-01, 06:15 AM
whurlston Wrote:That's what I thought but for some reason, it still consistently took ~20 seconds for the call to parser.aspx to return for me.

It is only consistently slow for me the first time and my server could be asleep, since it hadn't been touched since 2013

Code:
2014-01-01 01:09:49.025    [DEBUG][1]    YouTube: Parsed pconfig in 16255.9296875ms
2014-01-01 01:10:01.224    [DEBUG][1]    YouTube: Parsed pconfig in 381.021789550781ms
2014-01-01 01:10:10.860    [DEBUG][1]    YouTube: Parsed pconfig in 437.024993896484ms

Martin
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#500
2014-01-02, 12:13 AM
whurlston Wrote:The error is being thrown by AutoRefresh. Specifically the function AutoRefresh.AutoRefresh.GetFromOverride(String path). I will need to look at the code in AutoRefresh to determine exactly what file/path that function is checking (whether it is an override file or the video file) . Ian sent me the code in the past, I just need to dig it out. If you disable AutoRefresh, do you get the error?

Thanks again for that. I had disabled but not deleted AutoRefresh - and doing so removes the error dialogue box. I've also installed the two latest patches.

Now I get a blank screen instead - no matter what the video is. It's as if there isn't a codec for the stream, but I can't see a specific error in the logs. Your eyes are almost certainly better than mine at spotting it...
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (65): « Previous 1 … 48 49 50 51 52 … 65 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using R5000-HD with Network Recorder Plugin checkbin99 255 50,042 2021-08-24, 07:50 PM
Last Post: checkbin99
  how to configure RemoteRecorder Plugin to use remote NextPVR instance? bm_00 5 3,071 2020-10-06, 12:32 PM
Last Post: mvallevand
  Connecting NVPR to Emby Plugin NVPR Geek 0 1,332 2018-06-10, 12:32 AM
Last Post: NVPR Geek
  Newb here: Can someone help with a Plex Plugin issue? wepham 1 3,192 2017-02-07, 07:10 AM
Last Post: petenshari
  System Plugin Confused by New NPVR Naming Scheme Lao Pan 1 2,702 2016-09-25, 08:26 AM
Last Post: imilne
  Movies2 Plugin Problem... Anyone using it? ga_mueller 5 4,420 2016-08-22, 07:02 PM
Last Post: ga_mueller
  Plex Plugin Nikkie300 4 6,151 2016-01-24, 05:59 PM
Last Post: Nikkie300
  NextPVR Plex plugin, no live TV ajmast 15 9,552 2015-10-29, 03:45 AM
Last Post: ajmast
  Cant restart record service using System plugin on 3.4.8 shaunpatrick77 3 2,800 2015-05-19, 02:20 PM
Last Post: imilne
  Files Plugin crashes when there is an ' in the file name. cbgifford 89 28,891 2015-01-28, 05:19 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode