-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video imports fail #1218
Comments
I figured I'd try to help and forked the source. Located the part where Lychee should check if it's dealing with a video or a photo (app/Actions/Photo/Create.php line 259), but I'm afraid fixing it is a bit above my skill level. |
No problem. Right now I am on my lunch break from my (official) work. I will look into that this evening.
Ahm, there is no line 259 in that file? Anyway there are quick tests you could do. I don't know if they are purposeful, because I cannot check with the source code right now (I am typing on my mobile) and I do not know the code by heart. a) I noticed that your file extension is in capital letters b) If you are brave and have a full backup of you data, you could try the experimental branch This might be helpful for further debugging. I will read your answer this evening. |
Sorry, wrong file, the correct source file is: app/Actions/Import/Exec.php No, the file I tried to import did not contain a double dot nor a capital file extension. I'll see if I can find a whole log line next time it tries to import a video. I'm still importing a huge photo library (wife takes a LOT of photos...). I can see if I can set up a separate test environment with source from experimental branch once the import is done. |
Looked again, seems like that file had a capital file extension. Here's a full log entry: |
@anoteng You can try the fix from branch |
That was an impressively quick fix!. Seeing this in the log now: |
Detailed description of the problem [REQUIRED]
I'm using the import from server function to import my photo collection previously hosted on Synology PhotoStation. First import of the whole collection failed, but after splitting it up into yearly batches photo import works just fine. My problem is that a lot of these folders include video files. Most of these videos are of supported file formats, but they fail import.
I see a couple of previous references to the issue here: https://www.giters.com/LycheeOrg/Lychee-v3/issues/326 and here: LycheeOrg/Lychee-v3#156 but they are both reported for Lychee v3
Looks like the import function is trying to treat the video files as images.
Steps to reproduce the issue
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Output of the diagnostics [REQUIRED]
Browser and system
Server: Ubuntu 20.04 with packported PHP8.1
Storage: Synology NAS mounted via NFS
Browser: Google Chomre
The text was updated successfully, but these errors were encountered: