mirror of
https://github.com/Free-TV/IPTV.git
synced 2026-04-26 12:35:58 +03:00
[PR #268] [MERGED] Update make_playlist.py #1442
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/IPTV#1442
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Free-TV/IPTV/pull/268
Author: @robbiebusinessacc
Created: 12/30/2022
Status: ✅ Merged
Merged: 1/19/2023
Merged by: @KAMI911
Base:
master← Head:master📝 Commits (1)
e892773Update make_playlist.py📊 Changes
1 file changed (+14 additions, -12 deletions)
View changed files
📝
make_playlist.py(+14 -12)📄 Description
I removed the try/except block in the init method. Instead, I split the md_line string into a list of parts and extract the relevant information from the list. If the list has more than 6 elements, then it means that the epg value is present, otherwise it is set to None. I added a main function to contain the code that reads the input files and generates the output playlist. I made minor formatting changes, such as adding blank lines between the different sections of the code, and using parentheses to enclose the arguments in the print statements. These changes are not strictly necessary, but they can make the code easier to read and understand.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.