mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 21:35:34 +03:00
Compare commits
5 Commits
v2.0.2
...
a56c582068
| Author | SHA1 | Date | |
|---|---|---|---|
| a56c582068 | |||
| 3be92806b1 | |||
| 65baf34032 | |||
| 986d16addf | |||
| 57eb22615d |
10
flake.nix
10
flake.nix
@@ -6,7 +6,7 @@
|
|||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
||||||
version = "2.0.2";
|
version = "2.0.4";
|
||||||
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||||
@@ -100,11 +100,11 @@
|
|||||||
wantedBy = [
|
wantedBy = [
|
||||||
"default.target"
|
"default.target"
|
||||||
];
|
];
|
||||||
preStart = if !sync.skipFullSync then ''
|
preStart = if !sync.skipFullSync then (''
|
||||||
mkdir -p ${sync.target}
|
mkdir -p ${sync.target}
|
||||||
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode}
|
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}
|
||||||
'' else null;
|
'') else null;
|
||||||
script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode}";
|
script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type="simple";
|
Type="simple";
|
||||||
Restart="no";
|
Restart="no";
|
||||||
|
|||||||
@@ -243,8 +243,6 @@ func (o *Organizer) getMetadata(fp string, data io.Reader) (metadata.Metadata, e
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (o *Organizer) processFile(sourcePath string) error {
|
func (o *Organizer) processFile(sourcePath string) error {
|
||||||
fmt.Printf("%s %d %o\n", o.fileMode, o.fileMode, o.fileMode)
|
|
||||||
|
|
||||||
meta, err := o.getMetaForPath(sourcePath)
|
meta, err := o.getMetaForPath(sourcePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user