File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright © 2023-2024 Thomas von Dein
2
+ Copyright © 2023-2025 Thomas von Dein
3
3
4
4
This program is free software: you can redistribute it and/or modify
5
5
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ import (
34
34
)
35
35
36
36
const (
37
- VERSION string = "0.3.16 "
37
+ VERSION string = "0.3.17 "
38
38
Baseuri string = "https://www.kleinanzeigen.de"
39
39
Listuri string = "/s-bestandsliste.html"
40
40
Defaultdir string = "."
Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ user = 00000000
12
12
loglevel = "verbose"
13
13
14
14
# directory where to store downloaded ads. kleingebaeck will try to
15
- # create it. must be a quoted string.
16
- outdir = "test"
15
+ # create it. must be a quoted string. You can also include a couple of
16
+ # template variables, e.g:
17
+ # outdir = "test-{{.Year}}-{{.Month}}-{{.Day}}"
18
+ outdir = "test"
17
19
18
20
# template for stored adlistings.
19
21
template="""
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright © 2023-2024 Thomas von Dein
2
+ Copyright © 2023-2025 Thomas von Dein
3
3
4
4
This program is free software: you can redistribute it and/or modify
5
5
it under the terms of the GNU General Public License as published by
@@ -44,8 +44,8 @@ func OutDirName(conf *Config) (string, error) {
44
44
now := time .Now ()
45
45
data := OutdirData {
46
46
Year : now .Format ("2006" ),
47
- Month : now .Format ("02 " ),
48
- Day : now .Format ("01 " ),
47
+ Month : now .Format ("01 " ),
48
+ Day : now .Format ("02 " ),
49
49
}
50
50
51
51
err = tmpl .Execute (& buf , data )
You can’t perform that action at this time.
0 commit comments