Top Related Projects
Collection of publicly available IPTV channels from all over the world
Quick Overview
The EvilCult/iptv-m3u-maker is a Python script that generates an M3U playlist file from a list of IPTV channels. It can be used to create a customized IPTV playlist for personal use or to share with others.
Pros
- Automated Playlist Generation: The script can automatically generate an M3U playlist file from a list of IPTV channels, saving users time and effort.
- Customizable: Users can easily modify the script to include or exclude specific channels, change the output file name, and adjust other settings.
- Cross-platform Compatibility: The script can be run on various operating systems, including Windows, macOS, and Linux.
- Open-source: The project is open-source, allowing users to contribute, report issues, and customize the script to their needs.
Cons
- Limited Channel Sources: The script relies on a predefined list of IPTV channels, which may not include all the channels a user is interested in.
- Requires Python: Users need to have Python installed on their system to run the script, which may be a barrier for some.
- Potential Maintenance Issues: As the IPTV landscape changes, the script may require periodic updates to maintain compatibility with the available channels.
- No Graphical User Interface (GUI): The script is command-line-based, which may not be the preferred interface for some users.
Code Examples
The EvilCult/iptv-m3u-maker is a Python script, and here are a few examples of how it can be used:
- Generating a Basic M3U Playlist:
from iptv_m3u_maker import IPTVPlaylistMaker
playlist_maker = IPTVPlaylistMaker()
playlist_maker.generate_playlist()
playlist_maker.save_playlist('output.m3u')
This code creates an instance of the IPTVPlaylistMaker
class, generates the playlist, and saves it to a file named output.m3u
.
- Filtering Channels by Country:
from iptv_m3u_maker import IPTVPlaylistMaker
playlist_maker = IPTVPlaylistMaker()
playlist_maker.filter_by_country('United States')
playlist_maker.generate_playlist()
playlist_maker.save_playlist('us_channels.m3u')
This code filters the channels to include only those from the United States and saves the resulting playlist to a file named us_channels.m3u
.
- Customizing the Playlist Output:
from iptv_m3u_maker import IPTVPlaylistMaker
playlist_maker = IPTVPlaylistMaker()
playlist_maker.set_output_filename('custom_playlist.m3u')
playlist_maker.set_output_encoding('utf-8')
playlist_maker.generate_playlist()
playlist_maker.save_playlist()
This code sets the output file name to custom_playlist.m3u
and the output encoding to utf-8
before generating and saving the playlist.
Getting Started
To use the EvilCult/iptv-m3u-maker, follow these steps:
-
Ensure you have Python 3 installed on your system.
-
Clone the repository or download the source code:
git clone https://github.com/EvilCult/iptv-m3u-maker.git
-
Navigate to the project directory:
cd iptv-m3u-maker
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the script to generate the M3U playlist:
python iptv_m3u_maker.py
This will create a default
output.m3u
file in the project directory. -
(Optional) Customize the script by modifying the
iptv_m3u_maker.py
file to include or exclude specific channels, change the output file name, or adjust other settings. -
Run the script again to generate the updated playlist.
That's it! You now have a customized M3U playlist
Competitor Comparisons
Collection of publicly available IPTV channels from all over the world
Pros of iptv
- Larger and more active community with frequent updates
- Extensive collection of channels from various countries
- Well-organized repository structure with clear documentation
Cons of iptv
- May include some unstable or unreliable streams
- Requires manual filtering for specific regions or languages
Code Comparison
iptv-m3u-maker:
def get_channel_info(channel):
channel_info = {
'name': channel.get('name', ''),
'url': channel.get('url', ''),
'group': channel.get('group', '')
}
return channel_info
iptv:
def parse_playlist(playlist_content):
playlist = m3u8.loads(playlist_content)
channels = []
for segment in playlist.segments:
channels.append({
'name': segment.title,
'url': segment.uri
})
return channels
The code snippets show different approaches to handling channel information. iptv-m3u-maker uses a dictionary-based approach, while iptv utilizes the m3u8 library for parsing playlist content.
iptv-m3u-maker focuses on extracting specific channel attributes, whereas iptv parses entire playlists and creates a list of channels with basic information.
Both projects serve the purpose of managing IPTV channels, but iptv offers a more comprehensive and community-driven approach, while iptv-m3u-maker provides a simpler, more focused solution for creating M3U playlists.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
IPTV m3u ç´ææº æ¶é & æ±æ»
ç®ä»
主è¦åè½
æ¶éç½ç»ä¸ç°æçä¸äºç½åå ±äº«çç´ææº, å°å ¶æ±æ»å.
对æ¯ä¸ªè¿æ¥è¿è¡æµè¯, åæ¶è®°å½å½åç½ç»å¯¹è¯¥è¿æ¥ç延è¿, åæ¶å¯¹å ¶æ é¢è¿è¡ä¸å®çæ ¼å¼å.
æç», é对å½åç½ç»çæä¸ä»½å¯ç¨ç, åç±»é度æä¼ç âææ¾å表â.
å°å ¶è¾åºä¸º m3u æ件
ç¨åºå ç½®æå¡å¨åè½, æ¬å°è¿è¡è®¿é®: http://{ä½ çIP}:9527/m3u
ç®åè¿åº¦
ç®ååºåé¢éæ»æ°: 1024
å·²æ¾åºä¼è´¨é¢éæ»æ¯: 269
!!! 项ç®æç»æ´æ°ä¸ !!!
æ°æ®æ¥æº
- https://www.jianshu.com/p/2499255c7e79
- V2ex - Dotpy æä¾1600+å¯ç¨ææ¾æº
- http://iptv807.com/
æ°æ®æºæ»æ¯ææçæ¯æ°å¢çå¿«,欢è¿æ¨è稳å®æ°æ®æº
项ç®ä½¿ç¨æ¹æ³
æ¬é¡¹ç®åºäº python3.7 è¿è¡å¼å
æå¨æ§è¡
git clone https://github.com/EvilCult/iptv-m3u-maker.git
cd iptv-m3u-maker/python
python iptv.py
人çè¦ç, æç¨Docker
建议以Docker çæ¹å¼,ç´æ¥å¨è·¯ç±å¨ä¸è¿è¡,æ¬å°æ£æµå°å访é®,æ´ä¸ºç²¾å.
git clone https://github.com/EvilCult/iptv-m3u-maker.git
cd iptv-m3u-maker
docker build -t iptv-maker:latest .
docker run -it -d --name iptv -p 9527:9527 iptv-maker:latest
buildçè¿ç¨ä¸ä¼èªå¨é ç½®ç¨åºè¿è¡ç¯å¢, å ¶ä¸å·²å å«flaskæå¡å¨,å¯ç´æ¥è®¿é® ' http://{è¿è¡dockerçæºå¨çIPå°å}:9527 ' æ¥çå½åç¨åºç¶æ,以åç¸å ³æä½
å ¶ä»
å¾ ç¨åºç¨å¾®ç¨³å®åååªåä¸ä¸ªéå丢å°docker hubä¸å», ç´æ¥æå就好.
å ¶ä»
ç¸å ³é¡¹ç®
ãiptv-m3u-playerã - åºäºæ¬é¡¹ç®çè¡ç项ç®, åºäºElectron+Reactç¼åçä¸ä¸ªè½»é级æ¡é¢å®¢æ·ç«¯.é¢éæ°æ®ä¼éæ¬é¡¹ç®æ´æ°. Macä¸ä¸ç¥éç¨ä»ä¹å®¢æ·ç«¯ç,å¯ä»¥è¯è¯. (å½åæ´æ°æ¶åæ件路å¾ä¿®æ¹, 该项ç®ææ¶ä¸å¯ç´æ¥ä½¿ç¨.)
Android TV è¯·ä½¿ç¨ Kodi + âPVR IPTV Simple Clientâ
iOS è¯·ä½¿ç¨ Cloud Stream
PC æå°±ä¸å¤ªäºè§£äº....
å·²ç¥é®é¢
- 访é®é度æ
¢,è§é¢å¡é¡¿
- 解å³æ¹æ¡: ä¸è¦ç´æ¥å¼ç¨é¡¹ç®ä¸çtv.m3u8æ件,clone项ç®å°æ¬å°,å¨æ¬å°ç½ç»ç¯å¢ä¸æ§è¡é¡¹ç®,çææ°çæ件
- çµè§,广ææªåå¼
- ææ¶æªå¤ç,ä¼vå¨åç»çæ¬è¿è¡åç±»
- ç¨åºè¿è¡æ¥é
- å¯è½æ¯é¨å åäº«æº ç½ç«æå¡å½æº... å¯èªè¡æ³¨éé¨å代ç or æ交 issues
Top Related Projects
Collection of publicly available IPTV channels from all over the world
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot