-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from sashacmc/windows-support
Add Windows support
- Loading branch information
Showing
7 changed files
with
134 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
photo-importer (1.1.0) stable; urgency=medium | ||
|
||
* Add Windows support | ||
|
||
-- Alexander Bushnev <[email protected]> Mon, 31 Jan 2022 00:10:46 +0100 | ||
|
||
photo-importer (1.0.9) stable; urgency=medium | ||
|
||
* Add windows compatibility by means of use_shutil option | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
start "" http://localhost:8080/ | ||
cd photo_importer | ||
server.py -c ..\photo-importer-win.cfg | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[main] | ||
# time source order | ||
time_src_image = exif,name | ||
time_src_video = exif,name,attr | ||
time_src_audio = exif,name,attr | ||
|
||
# Date/Time formats | ||
out_date_format = %%Y/%%Y-%%m-%%d | ||
out_time_format = %%Y-%%m-%%d_%%H-%%M-%%S | ||
|
||
# Output sub directorines | ||
out_subdir_image = Foto | ||
out_subdir_video = Video | ||
out_subdir_audio = Audio | ||
|
||
# File extensions | ||
file_ext_image = jpeg,jpg,cr2 | ||
file_ext_video = mp4,mpg,mpeg,mov,avi,mts,3gp,m4v | ||
file_ext_audio = mp3,3gpp,m4a,wav | ||
file_ext_garbage = thm,ctg | ||
file_ext_ignore = ini,zip,db | ||
|
||
# Thread count | ||
threads_count = 2 | ||
|
||
# Remove garbage files (photo config, thumbnails, etc.) 0/1 | ||
remove_garbage = 1 | ||
|
||
# Remove empty directories | ||
remove_empty_dirs = 1 | ||
|
||
# Remove source files (in case of out_path specified) 0/1 | ||
move_mode = 1 | ||
|
||
# umask for new folder and copied files | ||
umask = 0o000 | ||
|
||
# use jpegtran in place of exiftran 0/1 | ||
use_jpegtran = 1 | ||
|
||
# use shutil libarary in place of system calls 0/1 | ||
# slower but provide more cross platform compatibility | ||
use_shutil = 1 | ||
|
||
[server] | ||
# server port | ||
port = 8080 | ||
|
||
# path to html files | ||
web_path = ..\web | ||
|
||
# imported output path | ||
out_path = C:\ | ||
|
||
# fixed input path | ||
in_path = | ||
|
||
# log file | ||
log_file = ..\photo-importer-server.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from setuptools import setup | ||
setup(name='photo-importer', | ||
version='1.0.9', | ||
version='1.1.0', | ||
description='Photo importer tool', | ||
author='Alexander Bushnev', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters