Исправление работы флага --skip-existing (#27)

This commit is contained in:
Lev Plyusnin 2023-08-27 13:07:45 +07:00
parent 57d15eb9d0
commit 24bdb4ce62
No known key found for this signature in database
GPG key ID: 21C6C2C9C0A4460D
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "yandex-music-downloader"
version = "1.0.1"
version = "1.0.2"
description = "Загрузчик музыки с сервиса Яндекс.Музыка"
requires-python = ">=3.9"
readme = "README.md"

View file

@ -212,7 +212,7 @@ def main():
save_path = args.dir / core.prepare_track_path(args.path_pattern,
track, args.unsafe_path)
if args.skip_existing and save_path.is_file():
return
continue
save_dir = save_path.parent
if not save_dir.is_dir():