icidasset / diffuse

A music player that connects to your cloud/distributed storage.
https://diffuse.sh
Other
808 stars 67 forks source link

Desktop Diffuse does not detect some .flac songs in cloud Google Drive #335

Closed Insidevk18 closed 2 years ago

Insidevk18 commented 2 years ago

Windows version : windows 10 Pro 21H2 Diffuse desktop version : 3.0.2 (latest) Cloud service : Google drive (shared drive) music file format : .flac

image

image

I had it rescan my Google drive several times but the problem still persists.

My .flac music files are not corrupted or anything, I tried it on Foobar2000 and it plays normal.

icidasset commented 2 years ago

Hmm πŸ€” When you switch to the list view, does it show the other tracks without the proper metadata (eg. like the filename as the track title)?

If possible, for debugging purposes, can you share the files with me? My email is: icid.asset @ gmail . com Also, did you use a folder id?

Insidevk18 commented 2 years ago

Hmm πŸ€” When you switch to the list view, does it show the other tracks without the proper metadata (eg. like the filename as the track title)?

If possible, for debugging purposes, can you share the files with me? My email is: icid.asset @ gmail . com Also, did you use a folder id?


Hello "icidasset", thank you very much for addressing this problem, I switched to the list view and the problem still persists.

image

It is also not found in the "unknown" part, those files are other songs.

image

Also, did you use a folder id?

You mean how do I link my Google Drive cloud? I linked Diffuse to Google Drive NOT BY API KEY, I did it the simple way, linking my Mail with Diffuse and giving it permission to access my Google Drive files.

On the other hand, I also put a "security password" which is what they asked me for the first time to link Google Drive.

If possible, for debugging purposes, can you share the files with me?

Of course, my friend, I already shared my folder with you, if you have any problem accessing my files, don't hesitate to tell me, I'll be able to find another way to send them to you :)

icidasset commented 2 years ago

Of course, my friend, I already shared my folder with you

Thanks! ☺️

Screenshot 2022-06-08 at 09 21 42

Looks like it works fine on my end πŸ€” I think this might be another case of Google Drive's "API rate limit" (hence why I suggest using other types of sources). That is, Diffuse makes too many requests according to Google Drive, so Drive blocks them, resulting in missing files or missing metadata (hence the "unknown" artist + title). You can double check if that's the case by opening the browser console (aka. developer tools), while processing, and looking for error messages.

Although... that doesn't explain why the missing tracks don't show up when processing again, unless they were imported without the metadata (ie. "unknown" artist + title). Are there no other tracks missing, besides from that album?

Another few things you can try:

You mean how do I link my Google Drive cloud?

I meant this form field when adding a source:

Screenshot 2022-06-08 at 10 11 30

The folder id is this part of the url:

Screenshot 2022-06-08 at 10 37 48
Insidevk18 commented 2 years ago

Hello "icidasset" Hmm, apparently it is because having too many songs did not successfully scan all of them? In fact there are 2 albums that load me the songs but without the metadata, and one of them is a .flac album that lasts approximately 50 minutes (all the compact album in a single .flac file) and loads it without metadata and as " unknown", but since I could still hear it in the part of unknown songs I didn't care.

Are there no other tracks missing, besides from that album?

Yes, I have a Linkin park album that is a 32-bit 192 khz .flac file, it doesn't scan the album at all, and something similar happens to me when I load an album that was .wav

Another few things you can try: Adding that folder specifically to Diffuse by adding another 'Google Drive' source with the folder id of that folder (see below for folder id info)

It worked, but it wasn't at the start, I had to skip my first source to find the full album :) image image image

I think that with this method I will be able to listen to the albums that are not processed at first :)

icidasset commented 2 years ago

Thanks for testing so thoroughly and all the info!

It worked, but it wasn't at the start, I had to skip my first source to find the full album

Interesting.. Glad that worked! Somewhat at least πŸ˜…

Hmm, apparently it is because having too many songs did not successfully scan all of them?

Kind of, if you were to use any other type of source with Diffuse, you'd have much better results. For example, I have 13000 tracks on Amazon S3, and that scans just fine (although it takes a long time if you scan it all at once). Because of the Google Drive API rate limiting, there's a limit to what you can scan, and I think because flac files are so large the API has extra trouble going through all of it πŸ€·β€β™‚οΈ

Sidenote: If anyone needs help using other types of sources in Diffuse, let me know. I'm writing some small guides on how to use them: https://github.com/icidasset/diffuse/discussions

At some point I'm going to take another stab at improving the performance/stability of all of this Google Drive stuff, but I don't have a lot of time to work on this project. You can track that at #338 if you want to.

Sorry I can't help more πŸ˜₯

Insidevk18 commented 2 years ago

Thanks for testing so thoroughly and all the info!

It worked, but it wasn't at the start, I had to skip my first source to find the full album

Interesting.. Glad that worked! Somewhat at least πŸ˜…

Hmm, apparently it is because having too many songs did not successfully scan all of them?

Kind of, if you were to use any other type of source with Diffuse, you'd have much better results. For example, I have 13000 tracks on Amazon S3, and that scans just fine (although it takes a long time if you scan it all at once). Because of the Google Drive API rate limiting, there's a limit to what you can scan, and I think because flac files are so large the API has extra trouble going through all of it πŸ€·β€β™‚οΈ

Sidenote: If anyone needs help using other types of sources in Diffuse, let me know. I'm writing some small guides on how to use them: https://github.com/icidasset/diffuse/discussions

At some point I'm going to take another stab at improving the performance/stability of all of this Google Drive stuff, but I don't have a lot of time to work on this project. You can track that at #338 if you want to.

Sorry I can't help more πŸ˜₯


Don't worry friend, you helped me enough, being able to enjoy my music from the cloud for free is enough for me, thanks for the project :)