Closed kruska7 closed 4 months ago
@kruska7 hi, i think there is a misunderstanding. The webui tree view is not displaying any playlist from the configuration. It is to display a raw list of given sourrce to see what content tge provider delivers to define your rules. It is only a helper to see the original content from provider.
The processed entries are only accessible through the api. If you have xtream output then the xtream api, if you have m3u output than the m3u api should be used to access the processed playlists.
The user credentials for each output can be defined in the ui.
I understand that, and I was expecting the raw list of content from the provider to show up in the web ui. But after selecting the source, nothing shows up, the view where the tree view should show is completely empty.
So disregard that I mentioned playlist_processor. The issue is that nothing from the provider shows up in the tree view.
@kruska7 if you have a xtream source you can only use the right drop down list which shows you the configured sources. You can only write a m3u playlist url in the edit field. Any xtream source can only be used through the dropdown list from the right.
It is a xtream source, but as you see on my screenshot I've already selected the source and still no data shows up below where the tree view should be presented.
I can see a http link on your screenshot, i mean the source in my Screenshot
Hi, I dont know if the same, but I am also unable to get the list.
You can choose the input provider, but I get a "Fail to Download PlayList" when selecting the download button.
The logs are showing a 401 Auth error, I believe the UI is failing to try and auth properly on Xtream input.
Note The m3u file is being created ok via Xtream in the background in /data. So the Auth creds are right.
@jamesarbrown i dont know why it fails, but the ui sends the download request to the backend , the backend uses the same function to download the list and not something else. There must be another reason which i dont understand. I dont have this problem. And i cant figure it out only looking at the source code. If you can debug the applicaiton it would be helpful . You can use Intellij Rover.
Suspect then its something to do with that i have it running in docker from a release, rather than source on baremetal.
If i can not resolve will open a new issue, but for now wont be able to setup debugging environment. Will try to increase log levels
@jamesarbrown i am running it in docker too, and it is working.
@euzu Yes, I've selected my http xtream source from the list (it is the only source I have). Am I suppose to press the download button after I've selected the source in order for the tree view to be displayed? I tried that, but I get the error
ERROR m3u_filter::utils::request_utils] cant download input url: http://xxx => Request failed with status 401 Unauthorized
Same problem as mine then.
I increased log levels and the 401 goes missing, but here are two versions. I noted that the request headeras are not present in the failing version, but not sure if that has anything to do with the issue
Background Scrape (Works)
[2024-07-07T08:24:32Z DEBUG reqwest::connect] starting new connection: http://REDACTED/
[2024-07-07T08:24:32Z DEBUG hyper_util::client::legacy::connect::dns] resolving host="REDACTED"
[2024-07-07T08:24:32Z DEBUG hyper_util::client::legacy::connect::http] connecting to REDACTED:80
[2024-07-07T08:24:32Z DEBUG hyper_util::client::legacy::connect::http] connected to REDACTED:80
[2024-07-07T08:24:32Z DEBUG m3u_filter::utils::request_utils] downloading json content from http://REDACTED:80/player_api.php?username=XYZ&password=XYZ&action=get_series
[2024-07-07T08:24:32Z DEBUG m3u_filter::utils::request_utils] Request headers {"accept-encoding": "gzip", "accept": "application/json, application/xml", "user-agent": "Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)Version/2.3 TV Safari/538.1"}
UI Scrape by Clicking Cloud Download (Fails)
[2024-07-07T08:30:00Z DEBUG m3u_filter::utils::request_utils] getting input text content working_dir: /data, url: http://REDACTED:80
[2024-07-07T08:30:00Z DEBUG m3u_filter::utils::request_utils] Request headers {}
[2024-07-07T08:30:00Z DEBUG reqwest::connect] starting new connection: http://REDACTED/
[2024-07-07T08:30:00Z DEBUG hyper_util::client::legacy::connect::dns] resolving host="REDACTED"
[2024-07-07T08:30:00Z DEBUG hyper_util::client::legacy::connect::http] connecting to REDACTED:80
[2024-07-07T08:30:00Z DEBUG hyper_util::client::legacy::connect::http] connected to REDACTED:80
[2024-07-07T08:30:00Z INFO actix_web::middleware::logger] 192.168.1.241 "POST /api/v1/playlist HTTP/1.1" 400 12 "http://10.8.5.3:8901/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" 0.153284
@jamesarbrown @kruska7 i will check the request headers , it could be that your provider block browser.
@jamesarbrown @kruska7 to send Request-Header you need to define them for the input. As an example:
sources:
- inputs:
- name: simple_xt
type: xtream
username: test
password: secret
url: http://iptv-test.tv
epg_url: http://iptv-test.tv/xmltv.php?username=test&password=secret
headers:
User-Agent: "Mozilla/5.0 (AppleTV; U; CPU OS 14_2 like Mac OS X; en-us) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15"
Accept: application/json
Accept-Encoding: gzip
targets:
- name: simplext
output:
- type: xtream
...
...
If you look at https://github.com/euzu/m3u-filter/issues/65#issuecomment-2212371345, it was enabled (as you can see in the logging), but in UI its not using it
Both logs are from same container with no changes in between
@jamesarbrown as you can see in the wireshark log the headers are sent to the provider, i checked it twice:
I have used the download button from the UI, the headers are only send when you select a defined input source from the right dropdown menu
Sorry, dont know, its a docker container, I cant change the code, so something is different. Its 3 providers, 2 for me tested, 1 for @kruska7
All I was looking at was the logging
Request headers {"accept-encoding...
vs
Request headers {}
And thought that may help point to an issue.
If I get time, I will try and hook up to the ethernet and also run wireshark so I can see NAS traffic.
@jamesarbrown i am running the m3u filter inside a docker container on a proxmox vm, and it is working without any problems.
@jamesbrown there is soemthing odd in your log at this line :
[2024-07-07T08:30:00Z INFO actix_web::middleware::logger] 192.168.1.241 "POST /api/v1/playlist HTTP/1.1" 400 12 "http://10.8.5.3:8901/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" 0.153284
Your browser sends the request to http://10.8.5.3:8901/api/v1/playlist
and gets a 400 Bad Request. Can you open the Developer Tools for the browser and look at the network tab to see what is the content of the request?
This?
@jamesarbrown exactly what i wrote, this is not the selected source, this is a http url, and without a input selection you cant send the headers. You need to select the source like in my previous comment:
Click the right arrow, select the desired input, press the download cloud icon
Ok, let me look at that, I am getting this
Have to go out now, will look again this evening. This is my config
sources:
- inputs:
- enabled: true
type: xtream
headers:
User-Agent: "Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)Version/2
Accept: application/json, application/xml
Accept-Encoding: gzip
url: 'http://xxxx:80'
username: xxx
password: xxx
@jamesarbrown ok now i understand, the name property is missing, pleae add name and test it again, yes name is optional, and i should fix this issue whit the ui, please add a name attribute and your problem should be fixed
sources:
- inputs:
- name: my_xtream <------ any name
type: xtream
username: test
password: secret
@kruska7 please add a unique name to each input and your problem should be fixed
Issue solved by adding a unique name to input as suggested.
Confirmed also.
BTW I do not think "name" is in the readme.
@jamesarbrown i have added name
to README nd WIKI, should be updated with the next commit.
Describe the bug No data shows in web ui after source is selected. Log shows playlist_processor processed both groups and channels, with no errors.
Expected behavior Tree view of playlist should show in ui.
Screenshots
Desktop (please complete the following information):
Additional context I have the most basic setup, no fluff added, but nothing shows in ui. I can update the playlist just fine in settings section of web ui though.
Please tell me what info you need from me to fix this. Would love to get this app working as it should :)
Log: