Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PVR IPTV Simple Client - Curl return HTTP 401 #1196

Closed
Biibou opened this issue Mar 8, 2018 · 1 comment
Closed

PVR IPTV Simple Client - Curl return HTTP 401 #1196

Biibou opened this issue Mar 8, 2018 · 1 comment

Comments

@Biibou
Copy link

Biibou commented Mar 8, 2018

Hello,

I have a problem with SPMC 17, curl always return HTTP 401 when trying to watch a stream with the built-in IPTV addon (PVR IPTV Simple Client).
It works great with KODI 17 and SPMC 16.

Thanks.

The relevant lines from the log file (let me know if you need the full log) :

03:08:34.979 T:137828000848 DEBUG: Loading settings for pvr://channels/tv/All channels/pvr.iptvsimple_1193527211.pvr
03:08:34.980 T:137828000848 DEBUG: CPlayerCoreFactory::GetPlayers(pvr://channels/tv/All channels/pvr.iptvsimple_1193527211.pvr)
03:08:34.981 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
03:08:34.981 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
03:08:34.981 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
03:08:34.982 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
03:08:34.982 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
03:08:34.982 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
03:08:34.983 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
03:08:34.983 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
03:08:34.983 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
03:08:34.983 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
03:08:34.984 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
03:08:34.984 T:137828000848 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
03:08:34.984 T:137828000848 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
03:08:34.985 T:137828000848 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
03:08:34.985 T:137828000848 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
03:08:34.985 T:137828000848 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
03:08:34.986 T:137828000848 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
03:08:34.987 T:137715590224 DEBUG: CAndroidJoystickState::ProcessEvent(type = key, keycode = 96, action = 1): unpressed
03:08:34.987 T:137715590224 DEBUG: CAndroidJoystickState: setting value for button 96 to 0
03:08:34.990 T:137828000848 DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
03:08:34.991 T:137828000848 NOTICE: VideoPlayer: Opening: pvr://channels/tv/All channels/pvr.iptvsimple_1193527211.pvr
03:08:34.991 T:137828000848 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
03:08:34.991 T:137828000848 DEBUG: LinuxRendererGL: Cleaning up GL resources
03:08:34.992 T:138223776848 DEBUG: Thread VideoPlayer start, auto delete: false
03:08:34.992 T:138223776848 NOTICE: Creating InputStream
03:08:34.993 T:138223776848 DEBUG: PVRManager - OpenLiveStream - opening live stream on channel 'TF1'
03:08:34.993 T:138223776848 DEBUG: opening live stream on url 'http://XXXXXX/6440.ts'
03:08:34.996 T:138283041872 DEBUG: BUTTON [ 0 ] on "NVIDIA Corporation NVIDIA Controller v01.03" released
03:08:35.000 T:138283041872 DEBUG: FEATURE [ a ] on game.controller.default released
03:08:35.009 T:138223776848 DEBUG: CDVDInputStreamPVRManager - Open - playback has started on filename pvr://channels/tv/All channels/pvr.iptvsimple_1193527211.pvr
03:08:35.009 T:138223776848 DEBUG: CurlFile::Open(0x202ec76bd8) http://XXXXXX/6440.ts
03:08:35.010 T:138223776848 INFO: easy_aquire - Created session to http://XXXXXX
03:08:35.167 T:138223776848 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 401
03:08:35.168 T:138223776848 ERROR: CCurlFile::Open failed with code 401 for http://XXXXXX/6440.ts
03:08:35.168 T:138223776848 DEBUG: CFileCache::Open - opening <live/XXXXXX/6440.ts> using cache
03:08:35.169 T:138223776848 DEBUG: CurlFile::Open(0x20315f0100) http://XXXXXX/6440.ts
03:08:35.278 T:138223776848 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 401
03:08:35.278 T:138223776848 ERROR: CCurlFile::Open failed with code 401 for http://XXXXXX/6440.ts
03:08:35.278 T:138223776848 ERROR: Open - failed to open source http://XXXXXX/6440.ts
03:08:35.279 T:138223776848 ERROR: CDVDInputStreamPVRManager::Open - error opening [http://XXXXXX/6440.ts]
03:08:35.279 T:138223776848 ERROR: CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/All channels/pvr.iptvsimple_1193527211.pvr]
03:08:35.279 T:138223776848 NOTICE: CVideoPlayer::OnExit()
03:08:35.297 T:138223776848 DEBUG: CDVDInputStreamPVRManager::Close - stream closed
03:08:35.297 T:138226885712 DEBUG: Thread JobWorker start, auto delete: true
03:08:35.297 T:138223776848 DEBUG: OnPlayBackStopped: play state was 1, starting 1
03:08:35.298 T:138223776848 DEBUG: Thread VideoPlayer 138223776848 terminating
03:08:35.298 T:137828000848 DEBUG: OnPlayBackStopped: play state was 3, starting 0
03:08:35.298 T:137834251344 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
03:08:35.299 T:137834251344 DEBUG: void CXBMCApp::OnPlayBackStopped()
03:08:35.299 T:137834251344 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
03:08:35.341 T:137828000848 NOTICE: CVideoPlayer::CloseFile()
03:08:35.341 T:137828000848 NOTICE: VideoPlayer: waiting for threads to exit
03:08:35.342 T:137828000848 NOTICE: VideoPlayer: finished waiting
03:08:35.342 T:137828000848 DEBUG: DeleteRenderer - deleting renderer
03:08:35.343 T:137828000848 DEBUG: LinuxRendererGL: Cleaning up GL resources
03:08:35.343 T:137828000848 NOTICE: CVideoPlayer::CloseFile()
03:08:35.343 T:137828000848 NOTICE: VideoPlayer: waiting for threads to exit
03:08:35.344 T:137828000848 NOTICE: VideoPlayer: finished waiting
03:08:35.346 T:137828000848 DEBUG: Radio UECP (RDS) Processor - delete ~CDVDRadioRDSData

@Biibou
Copy link
Author

Biibou commented Mar 11, 2018

I got it working, the default User-Agent was refused.
Sorry :)

@Biibou Biibou closed this as completed Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant