{"id":27024647,"url":"https://github.com/samestrin/m3uclean","last_synced_at":"2025-10-03T15:26:08.665Z","repository":{"id":281915431,"uuid":"946862489","full_name":"samestrin/m3uclean","owner":"samestrin","description":"A robust tool designed to validate and clean M3U playlists by verifying each channel's stream availability and removing any entries with invalid streams.","archived":false,"fork":false,"pushed_at":"2025-03-11T20:11:21.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T20:34:06.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samestrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-11T19:43:04.000Z","updated_at":"2025-03-11T20:11:25.000Z","dependencies_parsed_at":"2025-03-11T20:44:08.734Z","dependency_job_id":null,"html_url":"https://github.com/samestrin/m3uclean","commit_stats":null,"previous_names":["samestrin/m3uclean"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samestrin%2Fm3uclean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samestrin%2Fm3uclean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samestrin%2Fm3uclean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samestrin%2Fm3uclean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samestrin","download_url":"https://codeload.github.com/samestrin/m3uclean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247251781,"owners_count":20908576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-04T21:29:48.214Z","updated_at":"2025-10-03T15:26:03.615Z","avatar_url":"https://github.com/samestrin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# m3uclean\n[![Star on GitHub](https://img.shields.io/github/stars/samestrin/m3uclean?style=social)](https://github.com/samestrin/m3uclean/stargazers) [![Fork on GitHub](https://img.shields.io/github/forks/samestrin/m3uclean?style=social)](https://github.com/samestrin/m3uclean/network/members) [![Watch on GitHub](https://img.shields.io/github/watchers/samestrin/m3uclean?style=social)](https://github.com/samestrin/m3uclean/watchers)\n\n![Version 1.0.0](https://img.shields.io/badge/Version-1.0.0-blue) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) ](https://opensource.org/licenses/MIT)[![Built with Python](https://img.shields.io/badge/Built%20with-Python-green)](https://www.python.org/)\n\nA robust tool designed to validate and clean M3U playlists by verifying each channel's stream availability and removing any entries with invalid streams.\n\n## Features\n\n* **Stream Validation**: Automatically checks each channel's stream availability\n  * **Rate Limiting Protection**: Smart handling of rate limits with automatic backoff\n  * **Slow Mode**: Conservative request rates for more reliable validation\n* **Cleaning**: Cleans and corrects malformed entries\n  * **Aggressive Cleaning**: Removes potentially dangerous characters completely\n* **Duplicate Removal**: Identifies and removes duplicate channel entries\n* **Logging**: Detailed logs of actions performed on the playlists\n* **Docker Integration**: Packaged into a Docker container for easy deployment\n\n## Installation\n\n### Using pip\n\n```bash\npip install m3uclean\n```\n\n### From source\n\n```bash\ngit clone https://github.com/samestrin/m3uclean.git\ncd m3uclean\npip install -e .\n```\n  \n### Using Docker\n\n```bash\ndocker pull samestrin/m3uclean\n```\n\nOr build the Docker image yourself:\n\n```bash\ngit clone https://github.com/samestrin/m3uclean.git\ncd m3uclean\ndocker build -t m3uclean .\n```\n\n## Usage\n\n### Command Line\n\n```bash\n# Basic usage\nm3uclean input.m3u -o output.m3u\n\n# With stream validation\nm3uclean input.m3u -o output.m3u -v\n\n# With stream validation in slow mode (recommended for large playlists)\nm3uclean input.m3u -o output.m3u -v --slow\n\n# With aggressive cleaning\nm3uclean input.m3u -o output.m3u -a\n\n# With custom log file\nm3uclean input.m3u -o output.m3u -l logfile.log\n\n# Full options\nm3uclean input.m3u -o output.m3u -l logfile.log -v -a --slow\n```\n\n### Using Docker\n\n```bash\ndocker run -it --rm \\\n  -e INPUT_FILE=\"/var/tmp/m3u/playlist.m3u\" \\\n  -e OUTPUT_FILE=\"/var/tmp/m3u/playlist_clean.m3u\" \\\n  -e LOG_FILE=\"/var/tmp/m3u/m3uclean.log\" \\\n  -e STREAM_VALIDATE=\"true\" \\\n  -e AGGRESSIVE_CLEAN=\"true\" \\\n  -v \"/path/to/your/local/m3ufiles:/var/tmp/m3u\" \\\n  m3uclean\n```\n\n## Environment Variables\n\nWhen using Docker, you can configure the application using the following environment variables:\n\n* `INPUT_FILE`: Path to the input M3U playlist file\n* `OUTPUT_FILE`: Path to the output M3U playlist file\n* `LOG_FILE`: Path to the log file\n* `STREAM_VALIDATE`: Set to \"true\" to enable stream validation\n* `AGGRESSIVE_CLEAN`: Set to \"true\" to enable aggressive cleaning\n\n## Contribute\n\nContributions to this project are welcome. Please fork the repository and submit a pull request with your changes or improvements.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Share\n\n[![Twitter](https://img.shields.io/badge/X-Tweet-blue)](https://twitter.com/intent/tweet?text=Check%20out%20this%20awesome%20project!\u0026url=https://github.com/samestrin/m3uclean) [![Facebook](https://img.shields.io/badge/Facebook-Share-blue)](https://www.facebook.com/sharer/sharer.php?u=https://github.com/samestrin/m3uclean) [![LinkedIn](https://img.shields.io/badge/LinkedIn-Share-blue)](https://www.linkedin.com/sharing/share-offsite/?url=https://github.com/samestrin/m3uclean)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamestrin%2Fm3uclean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamestrin%2Fm3uclean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamestrin%2Fm3uclean/lists"}