Last active
October 28, 2019 18:12
-
-
Save X-88/5467a81e9f0cfedd9a510c63135b314f to your computer and use it in GitHub Desktop.
Playlist Generator for DVB S2 (Getmecom, Matrix, Kaonsat, DBox etc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################### | |
## App Name: Z-PlayList Generator. ## | |
## Language : Python 3xx. ## | |
## Coded by: Zephio ## | |
## Date : 16-Nop-2018 ## | |
## Target : Super, DBox, KaonSat, Matrix ## | |
########################################### | |
import os | |
x = 0 | |
ifn = "/storage/emulated/0/List.txt" | |
ofn = "/storage/emulated/0/mtb_list.txt" | |
if os.path.isfile(ifn) and os.access(ifn, os.R_OK): | |
print ('\n ##############################\n App Name: Z-Playlist Generator\n Coded by: Zephio\n Date: 16-11-2018\n ##############################\n Info: File Exists\n Process Done!...') | |
else: | |
print ('info: file not found') | |
with open(ifn, 'r') as f: | |
l = list(f) | |
with open(ofn, 'w') as s: | |
while x < len(l): | |
a = os.path.basename(l[x]) | |
e = os.path.splitext(a)[0] | |
s.write(e+'\n') | |
s.write(l[x]) | |
x += 1 | |
f.close() | |
s.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment