This project is a simple Python application that checks the channels in an M3U file against a list of channel names based on the similarity ratio using Levenshtein distance algorithm.
To install the required dependencies, run the following command:
pip install -r requirements.txt
Alternatively, to force the upgrade of the dependencies, use the following command:
pip install --upgrade --force-reinstall -r requirements.txt
You can either run the GUI application or the script via the terminal.
To run the GUI, use the following command:
python app.py
To run the script, use the following command:
python m3u.py -f file1.m3u file2.m3u -c channel1 channel2 -o output.m3u
-f, --files: The M3U file to check
-u, --urls: The URL of the M3U file to check
-c, --channel-names: The channel name to compare
-r, --similarity-ratio: The similarity ratio (default is 95)
-o, --output-file: The output M3U file
-d, --debug: Enable debug info
To run the tests, use the following command:
python -m unittest discover
Contributions are welcome. Please open an issue to discuss your idea before making a pull request.
This project is licensed under the terms of the MIT license.