Skip to content

Commit

Permalink
修复生产strm文件名错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Jan 28, 2024
1 parent fa7b172 commit d431495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autofilm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '处理失败,文件名包含特殊符号,建议重命名!')
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
APP_VERSION = 'v0.1.0'
APP_VERSION = 'v0.1.1'

0 comments on commit d431495

Please sign in to comment.