A simple CLI to edit M3U8 playlists that allows you to manage and modify playlists.
- Load Playlists: Import M3U8 playlists for editing.
- Modify Items: Add, remove, or edit entries in the playlist.
- Remove Low Quality Channels: Option to filter out channels that contains H265, HD², SD² or SD in their names.
- Remove Unwanted Groups: Easily delete groups of channels that are not needed.
- Change Group Title: Modify the titles of groups to better organize your playlists.
- List Channels Info: Display detailed information about the channels in the playlist.
- Save Changes: Export the edited playlist to a new M3U8 file.
-
Clone this repository:
git clone https://github.com/RafaelClaumann/m3u8_playlist_editor.git
-
Navigate to the project directory:
cd m3u8_playlist_editor
-
Run the main script:
cd app/ python3 main.py
-
Select an option: You will see a menu with the following options:
Choose an option to work with: 1. Channels 2. Movies/Vod 3. Series -1. Exit Enter the number of the desired option:
This is the file structure that this scripts can parse.
#EXTINF:0 tvg-name="News 4K" tvg-id="news.com" tvg-logo="channel.png" tvg-group="NEWS" catchup="default" catchup-days="7",News 4K
http://watch.com/news4k
#EXTINF:0 tvg-name="News H265" tvg-id="news.com" tvg-logo="news.png" tvg-group="NEWS" catchup="default" catchup-days="7",News H265
http://watch.com/newsh265
#EXTINF:0 tvg-name="Sports FHD" tvg-id="" tvg-logo="sports.png" tvg-group="SPORTS",Sports FHD
http://watch.com/sportsfhd
#EXTINF:0 tvg-name="Sports HD" tvg-id="" tvg-logo="sports.png" tvg-group="SPORTS",Sports HD
http://watch.com/sportshd
#EXTINF:-1 tvg-name="Movie Title" tvg-logo="movie.png" tvg-group="Movies | Drama",Movie Title
http://watch.com/movie/1231312.mp4
#EXTINF:-1 tvg-name="Some Series S01E01" tvg-logo="series.png" tvg-group="Series | provider",Some Series S01E01
http://watch.com/series/S01E01.mp4
#EXTINF:-1 tvg-name="Some Series S01E02" tvg-logo="series.png" tvg-group="Series | provider",Some Series S01E02
http://watch.com/series/S01E02.mp4