mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
application/ogg is music to
This commit is contained in:
parent
fe0832746b
commit
0b19af5e10
2 changed files with 6 additions and 1 deletions
|
|
@ -120,7 +120,10 @@ if($arguments['action']){
|
|||
OC_Filesystem::readfile($arguments['path']);
|
||||
exit;
|
||||
case 'find_music':
|
||||
OC_JSON::encodedPrint(OC_FileCache::searchByMime('audio'));
|
||||
$music=OC_FileCache::searchByMime('audio');
|
||||
$ogg=OC_FileCache::searchByMime('application','ogg');
|
||||
$music=array_merge($music,$ogg);
|
||||
OC_JSON::encodedPrint($music);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ class OC_MEDIA_SCANNER{
|
|||
*/
|
||||
public static function scanCollection($eventSource=null){
|
||||
$music=OC_FileCache::searchByMime('audio');
|
||||
$ogg=OC_FileCache::searchByMime('application','ogg');
|
||||
$music=array_merge($music,$ogg);
|
||||
$eventSource->send('count',count($music));
|
||||
$songs=0;
|
||||
foreach($music as $file){
|
||||
|
|
|
|||
Loading…
Reference in a new issue