Comments (6)
Everything was exactly like that, it works! Thank you;)
from immich-folder-album-creator.
Nvm I figured it out. I was using the root path on the host instead of the root path for Immich. Thanks, it works really well!
from immich-folder-album-creator.
I have a similar error. The point is that the script sees all photos (not limited to the specified folder). I can’t limit his search to only a specific folder. The path to the external library is correct (copied directly from the application itself)
from immich-folder-album-creator.
Hi, could you please share the arguments/environment variables you're using, the log the script produces and how your folder structure within the Immich container looks like?
from immich-folder-album-creator.
Of cource,
![Снимок экрана 2024-06-21 в 13 28 52](https://private-user-images.githubusercontent.com/13181029/341834484-268994e1-770e-4aeb-b1b2-21c3711a5120.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNDU0NDMsIm5iZiI6MTcxOTI0NTE0MywicGF0aCI6Ii8xMzE4MTAyOS8zNDE4MzQ0ODQtMjY4OTk0ZTEtNzcwZS00YWViLWIxYjItMjFjMzcxMWE1MTIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDE2MDU0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwY2Y5YmY3OTliZTg2YjYyM2NmNTBlMDhkOTc2MTUwN2E2ODlmY2RiYjE1ZWRlMDkyNGRmNTRmNmI1ODdmYWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RXsfayUD4jKZjIBIrGL8JXKNDKDPs7TE9OHFCMwg4_8)
python3 ./immich_auto_album.py root_path="/mnt/main_pool/archive/Photos/Travel/" [9:17:23]
time=2024-06-21T09:18:21.569-03:00 level=INFO msg=Detected Immich server version 1.106.4
time=2024-06-21T09:18:21.569-03:00 level=INFO msg=Requesting all assets
time=2024-06-21T09:20:03.904-03:00 level=INFO msg=41465 photos found
time=2024-06-21T09:20:03.904-03:00 level=INFO msg=Sorting assets to corresponding albums using folder name
time=2024-06-21T09:20:03.930-03:00 level=INFO msg=0 albums identified
time=2024-06-21T09:20:03.930-03:00 level=INFO msg=Album list: []
Press Enter to continue, Ctrl+C to abort
^CTraceback (most recent call last):
File "./immich_auto_album.py", line 336, in <module>
input()
KeyboardInterrupt
Variables api_url
and api_key
added in the script itself.
if I add a variable to the script
root_paths = '/mnt/main_pool/archive/Photos/Travel'
I get another error:
python3 ./immich_auto_album.py [12:49:40]
time=2024-06-21T13:07:05.585-03:00 level=INFO msg=Detected Immich server version 1.106.4
time=2024-06-21T13:07:05.586-03:00 level=INFO msg=Requesting all assets
time=2024-06-21T13:08:48.933-03:00 level=INFO msg=41465 photos found
time=2024-06-21T13:08:48.933-03:00 level=INFO msg=Sorting assets to corresponding albums using folder name
time=2024-06-21T13:08:48.933-03:00 level=WARNING msg=Got empty album name for asset path /mnt/main_pool/archive/Photos/Travel/qwe/IMG_2914.JPG, check your album_level settings!
-------
**there are a lot of lines like this + I see folders one level higher (where he shouldn’t go)**
------
time=2024-06-21T13:09:38.312-03:00 level=INFO msg=5 albums identified
time=2024-06-21T13:09:38.312-03:00 level=INFO msg=Album list: ['uload', 'uplad', 'upload', 'uplod', 'upoad']
-------
**strange albums о_0**
------
Press Enter to continue, Ctrl+C to abort
^CTraceback (most recent call last):
File "./immich_auto_album.py", line 336, in <module>
input()
KeyboardInterrupt
maybe this is important, I use the official immich app in TrueNAS
tell me if there is anything else I can show
from immich-folder-album-creator.
Ok, I think I know what's going on.
The call
python3 ./immich_auto_album.py root_path="/mnt/main_pool/archive/Photos/Travel/"
is not actually correct.
By default, the script expects three positional arguments in a very specific order: root_path
, api_url
, and api_key
.
Now you say you added api_url
and api_key
to the script itself, that's fine. Now the script stills expect one positional argument root_path
.
The option -r
or --root-path
is only intended to be used if you have multiple import paths or multiple external libraries the script should work with. The positional argument for root_path
must always be supplied, --root-path
is optional.
Since the script expects one positional argument, it interprets the whole string you provide as the root_path
, meaning your root_path
is currently set to root_path="/mnt/main_pool/archive/Photos/Travel/"
.
Adding -l DEBUG
(setting log level to DEBUG) and running it again should confirm this by showing the following output:
time=2024-06-21T18:58:36.399+02:00 level=DEBUG msg=root_path = ['root_path=/mnt/main_pool/archive/Photos/Travel/']
So the correct call for a single root_path
(taking your modifications into consideration) would be
python3 ./immich_auto_album.py /mnt/main_pool/archive/Photos/Travel/
Please let me know if that fixes your issue.
from immich-folder-album-creator.
Related Issues (15)
- [Docker] setup_cron.sh adds crontab expression each time container is restarted
- Make parent-name optional in naming of album HOT 6
- Main album unexpected name; Main album cannot be deleted HOT 3
- Manual run from composed service HOT 1
- Can we add different root Paths ? HOT 1
- Album level is being ignored HOT 2
- Creation of New folders & adding pictures to new folders doesnt appear to be working HOT 1
- Error "No connection adapters were found for.." with Immich 1.106.4 HOT 2
- New option for Album name levels HOT 4
- Album_levels is ignored HOT 1
- [FR] Specify multiple root paths HOT 5
- Add option to name album by deepest folder only HOT 5
- Multiple import paths in external library HOT 3
- Second Account HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from immich-folder-album-creator.