-
Notifications
You must be signed in to change notification settings - Fork 197
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
Field "length" is NULL, when files on external storage #747
Comments
Okay, thanks for the report. What kind of external storage are you using? I couldn't reproduce this with local remote storage which is the easiest to set up. I find it quite weird that extracting the track year has succeeded while getting the length has not. One would expect that if you don't get the length, you wouldn't get any other metadata, either. When you view the track details on the web UI, is the length missing also then? Can you find anything from the nextcloud.log after you have opened the details pane? When details are viewed, the file metadata is extracted from the file basically the same way as during the indexing. |
Based on your log, it seems that Nextcloud does not support seeking within a file on WebDAV-backed remote storage. The getID3 library we use for metadata extraction relies heavily on seeking, and can't function properly without this. Hence, you will end up with partial metadata. I know that Nextcloud has just recently implemented seeking for S3-backed remote storages (nextcloud/server#20033). However, I couldn't find any info about similar support for WebDAV backends, i.e. is it supposed to work or not. Apart from some metadata missing from the details pane, do you see any problems caused by this? I think that the song length stored to the database is not used for anything when using the web UI, but it is used when providing song info via the Ampache or Subsonic APIs. |
I only use the "length" field for my own purposes, like my own MP3 list on my website. After switching to external storage, I noticed that the field now remains empty. The empty field has no influence on the function of the app. It works great! |
I think that this case can be closed, as there is basically nothing we can do on the Music app. If the Nextcloud external storage adapters someday become more intelligent, then this problem should get solved automatically. |
Hello,
Table: oc_music_tracks
The column "length" is NULL if the files are on external storage.
If the files are on the internal storage, the column is filled correctly.
The text was updated successfully, but these errors were encountered: