diff options
author | Jesús <heckyel@hyperbola.info> | 2022-12-02 05:21:10 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-12-02 05:21:10 +0800 |
commit | eaeeef9c1d1bedb76fea953c332ef84d53bffe2c (patch) | |
tree | c3cb5582247e47fc67c24cd7ff8ea857fb76821e /hypervideo_dl/postprocessor/movefilesafterdownload.py | |
parent | 1e5a50b71d8f0eae6007bedc329eecb24bb5aba3 (diff) | |
download | hypervideo-eaeeef9c1d1bedb76fea953c332ef84d53bffe2c.tar.lz hypervideo-eaeeef9c1d1bedb76fea953c332ef84d53bffe2c.tar.xz hypervideo-eaeeef9c1d1bedb76fea953c332ef84d53bffe2c.zip |
update from upstream
Diffstat (limited to 'hypervideo_dl/postprocessor/movefilesafterdownload.py')
-rw-r--r-- | hypervideo_dl/postprocessor/movefilesafterdownload.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hypervideo_dl/postprocessor/movefilesafterdownload.py b/hypervideo_dl/postprocessor/movefilesafterdownload.py index 1064a8c..23b0924 100644 --- a/hypervideo_dl/postprocessor/movefilesafterdownload.py +++ b/hypervideo_dl/postprocessor/movefilesafterdownload.py @@ -1,13 +1,12 @@ -from __future__ import unicode_literals import os -import shutil from .common import PostProcessor +from ..compat import shutil from ..utils import ( + PostProcessingError, decodeFilename, encodeFilename, make_dir, - PostProcessingError, ) @@ -47,7 +46,7 @@ class MoveFilesAfterDownloadPP(PostProcessor): % (oldfile, newfile)) continue make_dir(newfile, PostProcessingError) - self.to_screen('Moving file "%s" to "%s"' % (oldfile, newfile)) + self.to_screen(f'Moving file "{oldfile}" to "{newfile}"') shutil.move(oldfile, newfile) # os.rename cannot move between volumes info['filepath'] = finalpath |