From a1cd9c5859c6e0ae9e6dfba5c99b6b83562e2dff Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:09:38 +0800 Subject: [PATCH] Update getm3u.py --- py/getm3u.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/getm3u.py b/py/getm3u.py index 1d26691..257d404 100644 --- a/py/getm3u.py +++ b/py/getm3u.py @@ -78,7 +78,7 @@ def parse(address: str): return parse_result def gen_m3u(group): - with open(sys.path[0] + "\\public\\iptv.m3u", "w+", encoding='utf-8') as f: + with open("iptv.m3u", "w+", encoding='utf-8') as f: f.write('#EXTM3U\n') f.write(f'#EXT-X-VERSION {int(time.time())}\n') f.write('\n') @@ -120,4 +120,4 @@ if __name__ == "__main__": # print(f'打印result:{result}') except Exception as e: print(e) - gen_m3u(result) \ No newline at end of file + gen_m3u(result)