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

xmltv json error. #140

Open
c0d3r1977 opened this issue Feb 12, 2023 · 7 comments
Open

xmltv json error. #140

c0d3r1977 opened this issue Feb 12, 2023 · 7 comments
Labels
bug Something isn't working xtream app Issue

Comments

@c0d3r1977
Copy link

Error on xmltv pull.

[GIN] 2023/02/12 - 14:24:50 | 500 | 545.663396ms | 192.168.1.23 | GET "/xmltv.php?username=xxxx&password=xxxxx"
Error #1: error unmarshaling json: json: invalid use of ,string struct tag, trying to unmarshal unquoted value into xtreamcodes.FlexInt

@pierre-emmanuelJ pierre-emmanuelJ added bug Something isn't working xtream app Issue labels Feb 21, 2023
@github59173
Copy link

github59173 commented Aug 19, 2023

I am also getting this error when trying to load VOD information. Also there are errors when processing the EPG information. Here is a dump of some errors when executing EPG update commands or trying to access VODs.

EPG error:
[GIN] 2023/08/19 - 23:27:10 | 500 | 817.362235ms | 192.168.4.20 | GET "/xmltv.php?username=ase&password=Test123"
Error #1: status code was 520, expected 2XX-3XX

TV Show VOD:
[GIN] 2023/08/19 - 23:37:19 | 200 | 2.893249618s | 192.168.4.20 | GET "/player_api.php?username=ase&password=Test123&action=get_series_info&series_id=3540"
Error #1: json: cannot unmarshal array into Go struct field SeriesEpisode.episodes.info of type struct { Audio xtreamcodes.FFMPEGStreamInfo "json:"audio""; Bitrate xtreamcodes.FlexInt "json:"bitrate""; Duration string "json:"duration""; DurationSecs xtreamcodes.FlexInt "json:"duration_secs""; MovieImage string "json:"movie_image""; Name string "json:"name""; Plot string "json:"plot""; Rating xtreamcodes.FlexFloat "json:"rating""; ReleaseDate string "json:"releasedate""; Video xtreamcodes.FFMPEGStreamInfo "json:"video"" }

I have confirmed this information is pulled down correctly from the provider without iptv-proxy. Is there a verbose/debug mode to help with tracking down the issue so it can be fixed quicker?

@NovalisVonHardenberg
Copy link

Same error since yesterday ...

@xinsider97
Copy link

Same error since yesterday ...

same here...

@brendandebeasi
Copy link

bump

@jimmy-1990
Copy link

Same issue here. Is this project dead?

@jtdevops
Copy link

jtdevops commented Sep 27, 2024

I have figured out the EPG issue.
There is a bug in the 'tellytv/go.xtream-codes' (iptv-proxy/vendor/github.com/tellytv/go.xtream-codes/xtream-codes.go) code which uses the action value twice. The fix is to set the action = "" as it was already used as the 'file' value, and shouldn't be appended to the xmltv.php URL.

Here is the method along with setting action = "".

func (c *XtreamClient) sendRequest(action string, parameters url.Values) ([]byte, error) {
	file := "player_api.php"
	if action == "xmltv.php" {
		file = action
		action = ""
	}
...

@jtdevops
Copy link

For everyone that is interested, I have forked the main project and added some enhancements that correct the EPG and VOD issues mentioned above.
I plan on creating Pull Requests to the original project within the next week or so, but in the meantime you can pull my fork of the project: https://github.com/jtdevops/iptv-proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working xtream app Issue
Projects
None yet
Development

No branches or pull requests

8 participants