bobalo 0 Posted March 24, 2022 Share Posted March 24, 2022 Hi community, I have a problem trying to add my xml list as a guided data source. No matter what I do I can never get it to work as it's always returning unauthorized. I've a tvheadend server that DOES require http authentication in order to retrieve the mentioned list, but I'm not sure how to input my username / password. I tried various things like : http://user:password@tvheadendserver:9981/xmltv/channels - unauthorized http://tvheadendserver:9981/xmltv/channels?username=someuserj&password=somepass - unauthorized If I copy and paste both those links into a new browser, I can retrieve the list without issues, so I know I'm not doing something wrong there. Logs : 2022-03-24 13:50:56.563 Info HttpClient: GetTempFileResponse url: http://user:pass@tvheadendserver:9981/xmltv/channels 2022-03-24 13:50:56.563 Info HttpClient: Found userInfo in url: user:pass ... url: http://user:pass@tvheadendserver:9981/xmltv/channels 2022-03-24 13:50:56.563 Info HttpClient: GET http://user:pass@tvheadendserver:9981/xmltv/channels 2022-03-24 13:50:56.938 Error LiveTvManager: Error refreshing channels for service *** Error Report *** Version: 4.6.7.0 Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_armv8.spk Operating system: Linux version 4.4.180+ (root@build16) (gcc version 7.5.0 (GCC) ) #42218 SMP Mon Oct 18 19:16:01 CST 2021 Framework: .NET Core 3.1.21 OS/Process: arm64/arm64 Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll Processor count: 4 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.GetTempFileResponse(HttpRequestOptions options) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.GetTempFile(HttpRequestOptions options) at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetXml(ListingsProviderInfo info, String path, MediaProtocol protocol, CancellationToken cancellationToken) at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken) at Emby.LiveTV.EmbyTV.GetEpgChannelData(IListingsProvider provider, ListingsProviderInfo info, CancellationToken cancellationToken) at Emby.LiveTV.EmbyTV.QueryChannelsAsync(ChannelManagementQuery query, CancellationToken cancellationToken) at Emby.LiveTV.EmbyTV.GetChannelsAsync(CancellationToken cancellationToken) at Emby.LiveTV.LiveTvManager.RefreshChannelsInternal(ILiveTvService service, IProgress`1 progress, CancellationToken cancellationToken) at Emby.LiveTV.LiveTvManager.RefreshChannelsInternal(IProgress`1 progress, CancellationToken cancellationToken) Source: Emby.Server.Implementations TargetSite: Void MoveNext() Can someone please assist me? Would really like to get it going. Also if someone knows if theres some sort of whitelist for xmltv at tvheadend, like per IP, let me know, since I can't really disable auth for it. Link to comment Share on other sites More sharing options...
Luke 37167 Posted March 24, 2022 Share Posted March 24, 2022 Hi, maybe you need to configure something in TV headend to allow this? Link to comment Share on other sites More sharing options...
bobalo 0 Posted March 24, 2022 Author Share Posted March 24, 2022 6 hours ago, Luke said: Hi, maybe you need to configure something in TV headend to allow this? Not sure what, I've checked the settings, only thing I can do is disable authentication. How does it work when I enter the URL at browser with user/pass in the link, and it won't when it's entered in emby? I'll try to seek out some help in the tvheadend forums, but I doubt it's their issue, since it works in the browser, and only not in emby. Link to comment Share on other sites More sharing options...
Luke 37167 Posted March 24, 2022 Share Posted March 24, 2022 does your password have any non-alphanumeric characters? 1 Link to comment Share on other sites More sharing options...
bobalo 0 Posted March 25, 2022 Author Share Posted March 25, 2022 13 hours ago, Luke said: does your password have any non-alphanumeric characters? Nope, it's pretty simple, three characters and three numbers, a-z , 1-10. Link to comment Share on other sites More sharing options...
Luke 37167 Posted March 28, 2022 Share Posted March 28, 2022 What authentication type did you set in tvheadend? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now