mirror of
https://gist.github.com/6ba37e4d4084e858f917e271550ce5f6.git
synced 2024-09-20 00:34:20 +03:00
Show clickable path
This commit is contained in:
parent
5ca08554b8
commit
f318a24041
@ -82,7 +82,7 @@ class PicSorter:
|
|||||||
from_path = os.fspath(filename)
|
from_path = os.fspath(filename)
|
||||||
to_path = os.fspath(self.config.dir_processed)
|
to_path = os.fspath(self.config.dir_processed)
|
||||||
shutil.move(from_path, to_path)
|
shutil.move(from_path, to_path)
|
||||||
print("Saved to", to_path)
|
self.__show_path(to_path)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -109,9 +109,12 @@ class PicSorter:
|
|||||||
image_path, tags = meta_result
|
image_path, tags = meta_result
|
||||||
to_path = self.library.move(image_path, tags)
|
to_path = self.library.move(image_path, tags)
|
||||||
self.db.add(post_id, tags.tags_string)
|
self.db.add(post_id, tags.tags_string)
|
||||||
print("Saved to", to_path)
|
self.__show_path(to_path)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def __show_path(self, p: str) -> None:
|
||||||
|
print("Saved to", 'file://' + p.replace(' ', '%20'))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
PicSorter.parse_args()
|
PicSorter.parse_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user