-
Notifications
You must be signed in to change notification settings - Fork 30
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
No group parsing #46
Comments
Hi there, can you please include your full command line with all of your arguments starring out anything sensitive like urls and passwords? I'll run some tests. Thanks. |
This is my command: No m3u file is created after this command is executed but original.channels.txt file is generated and contains some channels information (some from specified group and some other ones) Thanks |
I constructed a new minimal m3u file for the test that consisted solely of the following contents and I saved this file as
I then executed the python script against this minimal m3u file as follows:
This is the output from that test run:
I then checked that the resulting newly written ./output_file.m3u8 file contained the 1 expected matching row. As can be seen from my test run output above: It basically worked as expected for me so I think you'll need to look more closely at your input m3u data to be sure that it really contains what you think it contains (i.e. spaces where they are expected, not tabs / other unexpected whitespace characters etc) |
I apologize please ignore my last comment, there is something odd going on here - investigating further. |
ok I think I need to see a little bit more of your input m3u file data because this alone is incomplete and it does not constitute a complete m3u entry:
|
OK, supposing we have this minimal.m3u8 file:
and then we execute this command line:
Are you agree that the result m3u file should contains only this ?
Because here, all the lines of original file are appended to the generated file :( |
Got it!
regex_str is not defined in the current script |
You're close but there is no bug here. The
The problem you reported there lies with the pipe (|) characters in your group name Using the same minimal.m3u8 sample input file from above (which is now complete and valid m3u file contents ;))
try this:
This will now work as expected because the pipe characters are escaped with backslash characters in the passed |
Hi,
Oh sorry you are right, regex_str takes value from item_list :)
You're right ! It's working perfecly now. |
Excellent, no problem, I'm happy to hear that it's working for you now. |
Hi,
First, thank you for your fantastic script.
I just test it but I don't understand why my output file doesn't content any channel in this configuration :
My m3u file obtained from URL contains this line:
#EXTINF:-1 tvg-id="Tf1.mu" tvg-name="TF1 SD" tvg-logo="http://www.topstb.info/logo/FRANCE/TF1HD.png" group-title="|EU| FRANCE TNTSAT",TF1 SD
I defined group argument like this in my command line:
-g="'|EU| FRANCE TNTSAT'" -gm='keep'
Log:
2020-04-29T18:59:13.147659 saving retrieved m3u file: ./original.m3u8 2020-04-29T18:59:13.147659 parsing m3u into a list of objects 2020-04-29T18:59:13.757026 m3u contains 24464 items 2020-04-29T18:59:13.757026 keeping channel groups in this list ['|EU| FRANCE TNTSAT'] 2020-04-29T18:59:13.850776 filtered m3u contains 0 items 2020-04-29T18:59:13.866385 saving to log: ./process.log 2020-04-29T18:59:13.866385 script runtime: 0 minutes 7 seconds 2020-04-29T18:59:13.866385 process completed
Any hints appreciated.
PS : I use last python3 script
The text was updated successfully, but these errors were encountered: