[Solved] Cannot add Youtube-Channel

General discussion about Universal Media Server (no support or requests)
Bro
Posts: 8
Joined: Thu Jan 16, 2025 2:49 am

[Solved] Cannot add Youtube-Channel

Post by Bro »

I tried to add a Youtube Channel to UMS (V. 14.10.0), but have no success. I always get the message, that the feed was not found.




I tried the channel that you used in the Knowledge Base (https://www.youtube.com/@kurzgesagt). When I open the link in the browser, I can open the channel, but not within USM.
I use Windows 11.
Do I need some additional DLL-Files or Apps, that it works?
Attachments
Screenshot video-feed.png
Screenshot video-feed.png (6.22 KiB) Viewed 37173 times
User avatar
mik_s
Moderator
Posts: 1441
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Cannot add Youtube-Channel

Post by mik_s »

I thought it might be that YouTube changed stuff again and broke this.

I have never used this myself but just tried to set it up and it is giving me a feed error when adding it.
Clipboard Image (5).jpg
Clipboard Image (5).jpg (6.28 KiB) Viewed 37058 times
Checking the logs I see this error

Code: Select all

java.lang.NullPointerException: Cannot invoke "org.jsoup.nodes.Element.attr(String)" because the return value of "org.jsoup.select.Elements.first()" is null
	at net.pms.store.container.Feed.getFeedUrlFromWebpage(Feed.java:290)
	at net.pms.store.container.Feed.getYouTubeChannelFeedUrl(Feed.java:310)
	at net.pms.store.container.Feed.getFeedUrl(Feed.java:329)
	at net.pms.store.container.Feed.<init>(Feed.java:62)
	at net.pms.store.container.VideosFeed.<init>(VideosFeed.java:26)
	at net.pms.store.MediaStore.setExternalContent(MediaStore.java:379)
	at net.pms.store.MediaStore.setSharedContents(MediaStore.java:280)
	at net.pms.store.MediaStore.discoverChildren(MediaStore.java:220)
	at net.pms.store.MediaStore.reset(MediaStore.java:407)
	at net.pms.renderers.Renderer.resetMediaStore(Renderer.java:275)
	at net.pms.renderers.ConnectedRenderers.resetAllRenderers(ConnectedRenderers.java:354)
	at net.pms.PMS.resetRenderersMediaStore(PMS.java:682)
	at net.pms.configuration.sharedcontent.SharedContentConfiguration.updateSharedContent(SharedContentConfiguration.java:179)
	at net.pms.configuration.sharedcontent.SharedContentConfiguration.setFromJsonArray(SharedContentConfiguration.java:208)
	at net.pms.network.webguiserver.servlets.SharedContentApiServlet.doPost(SharedContentApiServlet.java:112)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:547)
	at net.pms.network.webguiserver.GuiHttpServlet.service(GuiHttpServlet.java:61)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
	at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736)
	at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1619)
	at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1552)
	at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:819)
	at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:436)
	at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:469)
	at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1060)
	at org.eclipse.jetty.server.Server.handle(Server.java:182)
	at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:662)
	at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:418)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
	at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:480)
	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:443)
	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:311)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
	at java.base/java.lang.Thread.run(Unknown Source)
So I think this might be a bug. I'll make an issue on GitHub.

It also says that the configuration will not be saved because of an error but it does anyway
Clipboard Image (4).jpg
Clipboard Image (4).jpg (9.77 KiB) Viewed 37058 times
This caused no media to be visible on my PS4 or web player after restarting UMS.
Some people have mentioned that UMS is empty when opening it on their devices so this may be the cause.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Bro
Posts: 8
Joined: Thu Jan 16, 2025 2:49 am

Re: Cannot add Youtube-Channel

Post by Bro »

Thank you for testing it.
I am reassured that the problem is not my system or even me.
It's not a big problem for me. UMS is working well so far and I can wait until I can also activate YouTube channels.
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: Cannot add Youtube-Channel

Post by SubJunk »

I think this should be fixed by getting the latest nightly youtube-dl version, can you please test it? https://github.com/ytdl-org/ytdl-nightl ... ube-dl.exe
Just replace the one in the UMS installation directory with that
Bro
Posts: 8
Joined: Thu Jan 16, 2025 2:49 am

Re: Cannot add Youtube-Channel

Post by Bro »

I downloaded now the sugested new youtube-dl.exe and replaced the old file in the directory C:\Program Files\Universal Media Server\bin by the new one.

It still does not work.
Attachments
Screenshot 2025-01-30 020142.png
Screenshot 2025-01-30 020142.png (5.92 KiB) Viewed 36631 times
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: Cannot add Youtube-Channel

Post by SubJunk »

Ah ok thanks for checking. I will try to look into it more
Bro
Posts: 8
Joined: Thu Jan 16, 2025 2:49 am

Re: Cannot add Youtube-Channel

Post by Bro »

Thank you.
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: Cannot add Youtube-Channel

Post by SubJunk »

Unfortunately I can't reproduce this problem. When I add https://www.youtube.com/@kurzgesagt it resolves the name properly. So I will need your debug logs please :)
Bro
Posts: 8
Joined: Thu Jan 16, 2025 2:49 am

Re: Cannot add Youtube-Channel

Post by Bro »

How do I do that?
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: Cannot add Youtube-Channel

Post by SubJunk »

Instructions are at viewtopic.php?f=9&t=556
Post Reply