Skip to content

Commit

Permalink
Do not save post info to target subfolder if better quality was found…
Browse files Browse the repository at this point in the history
… in a different location
  • Loading branch information
trickerer01 committed Jun 17, 2024
1 parent 58a2485 commit ede97d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ async def download_video(vi: VideoInfo) -> DownloadResult:
else:
qstr = f'\'{curfile_oquality}\' {"==" if exact_quality else ">=" if curfile_oquality else "<?>"} \'{curfile_quality}\''
Log.info(f'{vi.sfsname} already exists ({qstr}). Skipped.\n Location: \'{curfile}\'')
vi.subfolder = normalize_path(path.relpath(curfile_folder, Config.dest_base))
vi.set_state(VideoInfo.State.DONE)
return DownloadResult.FAIL_ALREADY_EXISTS
if not path.isdir(vi.my_folder):
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
APP_NAME = 'NM'
APP_VER_MAJOR = '1'
APP_VER_SUB = '8'
APP_REVISION = '401'
APP_REVISION = '402'
APP_VERSION = f'{APP_VER_MAJOR}.{APP_VER_SUB}.{APP_REVISION}'

#
Expand Down

0 comments on commit ede97d2

Please sign in to comment.