bebo-dot-dev / m3u-epg-editor

a python m3u / epg optimizer
The Unlicense
125 stars 29 forks source link

EPG output is blank? #84

Closed ls-milkyway closed 1 month ago

ls-milkyway commented 1 month ago

Describe the bug Trying to implement on the epg: https://github.com/matthuisman/i.mjh.nz/raw/master/SamsungTVPlus/all.xml.gz m3u8 file generated is perfect...but epg xml file is blank??

Required To Reproduce When requesting support for something not working as expected all of the following are required. Issues not supplying all items will be closed. Please supply sanitised data files with username/passwords removed and attach the smallest files possible that reliably reproduce to the issue.

  1. All input arguments passed to the script CLI / complete input --json_cfg configuration.

  2. Using only CLI command:

  3. python3 ./m3u-epg-editor-py3.py -m="https://cutt.ly/ZeTNyZnn" -e="https://github.com/matthuisman/i.mjh.nz/raw/master/SamsungTVPlus/all.xml.gz" -g="'India','Canada','United States','United Kingdom'" -pc -ns -d="/home/rana/iptv" -f="m3u-new"

  4. A sample input m3u data file and an epg data file (if in use).

M3U8 url is [https://cutt.ly/ZeTNyZnn EPG url is https://github.com/matthuisman/i.mjh.nz/raw/master/SamsungTVPlus/all.xml.gz

  1. The --log_enabled log file of a run where the problem occurred. Forgot log option ...see if you can find the root cause without log.

Additional context I guess your code is for some IPTV services as mentioned in rhe readme...specify if this can be implemented on the above mentioned repo.

bebo-dot-dev commented 1 month ago

Please supply the actual m3u file that was processed that you believe is paired against the EPG file that you've supplied.

I'm not willing or able to try and guess at the data that you're using.

If you can't, this will be closed won't fix.

ls-milkyway commented 1 month ago

Please supply the actual m3u file that was processed that you believe is paired against the EPG file that you've supplied.

I'm not willing or able to try and guess at the data that you're using.

If you can't, this will be closed won't fix.

Thanks for quick response.

I have created a temp link of the original URL: https://cutt.ly/ZeTNyZnn It's the same file downloaded as using the command ...the first line of the m3u8 file also declares the EPG url.

bebo-dot-dev commented 1 month ago

I ran a test with your input data

"m3uurl": "https://cutt.ly/ZeTNyZnn",
"epgurl": "https://github.com/matthuisman/i.mjh.nz/raw/master/SamsungTVPlus/all.xml.gz"

With "log_enabled": true this is the process log for the test run: process.log

These are the resulting generated files (file extensions changed to .txt to enable attach here):

This is the output of no_epg_channels.txt for the test run: no_epg_channels.txt

From the readme

no_epg_channels.txt This is a log of any channels that you decided to keep that were subsequently found to have no epg data available.

There is no EPG data in the xml file for the channels in the m3u file.

This can't and won't work as is, m3u data channels vs EPG data channels are unmatched, this is why the resulting generated EPG XML contains no channels.

You might be able to get this to work by transforming m3u tvg-id values with a set of id_transforms config to get the m3u channels to match what is in the EPG XML file but there's an argument to say that the data is just wrong. As an example tvg-id="CABB26000082J-ca" which features in the m3u file with a trailing country code does not equal channel id="CABB26000082J" which features in the XML file which does not contain a trailing country code.

If you want to give id_transforms a try, search closed issues for examples and test it out.