owncloud / music

:notes: Music app for ownCloud
GNU Affero General Public License v3.0
571 stars 199 forks source link

Scan music from local mounted storages #144

Closed MorrisJobke closed 10 years ago

MorrisJobke commented 10 years ago

Seems to not work. See comments on apps.owncloud.org

Tronic69 commented 10 years ago

What do you mean with local mounted storage? Did you add it as "external storage"?

I linked some directories with music and pics into my owncloud files dir and it works fine.

MorrisJobke commented 10 years ago

@Tronic69 Thanks for this feedback. I just add this as a reminder for a comment on apps.owncloud.org, but didn't verify if this is valid as I'm currently quite busy. The author of the comment said:

I have OC 6 and this music app. I add my music Foleder/structure with "external storage support". The music files are shown under files but not shown in the music app. Only if i upload music files the music is shown.

Maybe I need to listen for a filesystem hook once a external storage is mounted. (And I missed a sentence the author wrote.)

MorrisJobke commented 10 years ago

Maybe gets fixed with the same code as #138

happyreacer commented 10 years ago

I have the same problem. The app scan 3318 files but i down't see any tracks when it is finish. My music is mound over "external storage support" app on a other disk on my pc

MorrisJobke commented 10 years ago

@happyreacer Did you specify a music path (can be done in user settings)? Then it will filter the webview to only files below this path.

happyreacer commented 10 years ago

yes, i have a specify file to my music and i see a searchprocess. When it is finsh i have a withe side with a info: "Alles leer. Laden Sie Ihre Musik hoch!" (In german) I have test on a other system and local music files - the same problem.

MorrisJobke commented 10 years ago

@happyreacer What version do you use? Packaged, git tag or git master?

happyreacer commented 10 years ago

i used oc 6.0.2 and on the first time musicapp 0.1.9-rc. On the secound i have used musicapp 0.1.9.1-rc. I have downlouad both versions from the apps.owncloud.com On the first activate the app i see the demosong but when the app search i don't see any songs. Only on the bottom the counter goes in 50 staps and finish on the end without any list songs

happyreacer commented 10 years ago

okay, i test it again. It work, when i have the music in a music folder but the musik on a externel disk does't work. The extern disk is mount with a symbol link in my fstab on a Musik folder. I use the Musik folder to mount in ownCloud. I think this is the problem.

MorrisJobke commented 10 years ago

@happyreacer Is the external disk mounted through fstab into the data folder of owncloud or mounted in with the external_storage app inside of ownCloud?

happyreacer commented 10 years ago

disk is mount through fstab and a folder from the disk is in local folder mount though fstab, too. The local folder mounted with the external_storage app inside of ownCloud. :-) is it crazy? centralised: Musik folder on disk mount through fstab on Musik folder local Musik folder local mounted with the external_storage app inside of ownCloud

MorrisJobke commented 10 years ago

@happyreacer That's a crazy setup, but I try to figure out the problem. I think it's related to #73

mmattel commented 10 years ago

@MorrisJobke My environment is:

Server configuration

Ubuntu Ubuntu 12.04.4 LTS, 64 bit, latest patches Apache 2.2.22, MySQL 5.5.35, PHP 5.3.10 ownCloud version:ownCloud 7.0 pre alpha (git), master 2014.04.03 (morning) No encryption, external local mount points (which is a ubuntu mounted smb share)

After creating the oC external local mount point where my music is stored, I downloaded the music app via git to my apps2 folder and enabled it. After clicking on the music app, it starts scanning, see screenshots: image image

The scanning process is compared to other scanning processes from eg core unusual slow and takes a long time. The result of this scanning is below, but no scanned music: image

There are no corresponding entries in the oC log.

In the MySQL database, 6 ocmusic* tables have been created and are filled up, where I have not checked the table contents in detail.

mmattel commented 10 years ago

Additional test:

I uploaded a .mp3 file from the extrernal local mount to the oC root and the music app recognized the file immediately and I was able to stream it. In a second test with a .m4a file, the music app failed to recognized it. Nevertheless, there are tons of mp3 in my extrernal local mount which should be recognized properly.

This test shows, that the problem is definitely when music is on a extrernal local mount point.

Yamakasi commented 10 years ago

Yes, same conclusion here, it does not scan external storage well.

I hope this is fixed soon.

MorrisJobke commented 10 years ago

I pushed some changes today and they work with external storage for stable5, stable6 and master.

Fixed with #182