Jump to content

Suddenly cannot open youtube live on DVBViewer


jactkwn

Recommended Posts

Posted

I am wondering if this is my computer's iP address problem, or something has to be changed on DVBViewer. Many thanks

Posted

I think Youtube changed something. It ends up with a server-side 403 Forbidden error here, as DVBViewer debug mode reveals. Youtube doesn't allow us to play live streams in DVBViewer anymore. Dunno yet if something can be done about it.

 

  • 3 weeks later...
  • 1 month later...
Posted (edited)

Would it be wrong to give an idea? Or two?

Edited by Iks Brasil
Posted

What do you mean by "give an idea"?

 

If you want to tell me something that shall not become public please use a personal forum message.

 

Posted

I had created a tool in another post that basically took the link and sent it to DVB. It still gets the link, but it doesn’t open anymore.

 

 

Idea: In another program that has already been discontinued, something like this was done: yt-dlp was placed in the program’s folder, and when using links supported by it, automatically—or with an option in the settings—it would open the YouTube video.

 

https://prnt.sc/Kjbf3dPEismx

Posted

Looks like a clever solution. I don't need it, but maybe other people want to use it. Obviously there is need for it.

 

I had a short look at your script:

 

# Abre no DVBViewer
def abrir_no_dvbviewer(url):
    caminho_dvbviewer = r"C:\Program Files (x86)\DVBViewer\DVBViewer.exe"
    subprocess.run(['start', '', caminho_dvbviewer, url], shell=True)

 

I would not use a hard-coded DVBViewer path. E.g. on my PC the path is C:\Program Files (x86)\DVBViewer Pro\DVBViewer.exe. So it may be better to read the path from the registry, e.g. from 

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\dvbviewer.exe.

 

Posted (edited)

Or also, is there no way to edit the script "search.m3u8"?

Edited by Iks Brasil
Posted
vor 18 Stunden schrieb Iks Brasil:

Is there any way to call external applications through a URL?

 

No, there isn't. It could be implemented, but enabling something like this is a potential security risk.

 

I suppose what you want is some kind of channel list entry in DVBViewer, that launches the whole process that is necessary for passing an URL to yt-dlp, getting the stream URL from it, passing it to DVBViewer and let it play the stream. However, I see no possibility to launch external executables with the current DVBViewer version.

 

vor 17 Stunden schrieb Iks Brasil:

Or also, is there no way to edit the script "search.m3u8"?

 

The search.m3u mechanism would require a HTTP server running locally all the time in the background, while DVBViewer is running. Let's assume 5077 as its port. It would have to do the following

  • Receive a request from DVBViewer, something like http://127.0.0.1:5077/?url=https://www.youtube.com/watch?v=YDvsBbKfLPA. The original URL in the DVBViewer channel list would be http://127.0.0.1:5077/search.m3u8?url=https://www.youtube.com/watch?v=YDvsBbKfLPA. However, search.m3u8 is not sent to the server. It only tells DVBViewer that it shall search for an m3u8 URL in the server response.
  • Pass the part after ?url=... to  yt-dlp and read the URL created by it.
  • Send this URL as response to DVBViewer, enclosed in single or double quotes ('url' or "url"). DVBViewer will now search in the server output for an URL containing .m3u8 and play it.

That would work. I don't know if it is possible to create such a server with Python. I could also try do it in Delphi (maybe even as a DLL loaded as plugin by DVBViewer), which would be some work, but I already have templates like the server in the WiFi Remote Input Plugin. That makes it a bit easier. The hard part will be reading the yt-dlp output from stdout. I first have to find out how this can be done in Delphi.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...