diff --git a/autofilm.py b/autofilm.py index f8b4934..38a8818 100644 --- a/autofilm.py +++ b/autofilm.py @@ -131,7 +131,7 @@ def download_file(url, local_path, filename, total_count): print('正在处理:' + filename) try: os.makedirs(os.path.dirname(local_path), exist_ok=True) - with open(os.path.join(local_path[:-3] + 'strm'), "w", encoding='utf-8') as f: + with open(os.path.join(local_path.rsplit('.', 1)[0] + '.strm'), "w", encoding='utf-8') as f: f.write(url.replace('/dav', '/d')) except: print(filename + '处理失败,文件名包含特殊符号,建议重命名!') diff --git a/version.py b/version.py index af1ce57..ea0a26b 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -APP_VERSION = 'v0.1.0' \ No newline at end of file +APP_VERSION = 'v0.1.1' \ No newline at end of file