Wellenline / auddly-server

Simple self-hosted music streaming server
https://auddly.app
MIT License
301 stars 12 forks source link

Alert: Cast to ObjectId #13

Closed gonjat closed 4 years ago

gonjat commented 4 years ago

After newest commit, the android app says { Cast to ObjectId failed for the value "undefined" at path "artist" for model "album" }

Is this due to my folder structure?

MihkelBaranov commented 4 years ago

Hard to tell, try removing the API and mongo containers and rebuilding

MihkelBaranov commented 4 years ago

Also, make sure your audio files are correctly tagged

gonjat commented 4 years ago

what are all the file extensions that it can play? I restarted a new library all with the extension mp3 would that be the issue? I will try a flac file next.

gonjat commented 4 years ago

I tried both of your suggestions, with the same result.

In the app, I can go to My Music and all my tracks show up with proper album art, track names, and they all play fine. However Artists dont show up and when I tap where one should show up onscreen, it produces the error above. If I tap the album square, it force closes the app.

gonjat commented 4 years ago

Is there a strict folder structure I need to follow? I have used beets to tag all my music with as much detail as possible but it still produces the same error. Thanks

MihkelBaranov commented 4 years ago

Folder structure shouldn't matter... Is there any way you could share the library so I can debug it?

gonjat commented 4 years ago

Sorry I haven't commented back yet. I may have solved it, might not be the whole issue but the culprit was the android app itself. I was on the normal app, once I joined the beta and used the new rewritten app, all works fine now.