diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-26 03:42:15 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-26 03:42:48 +0100 |
commit | 0b19af5e10ea83400e114c8b2d4252fb8d50cc33 (patch) | |
tree | 85c1caa0afa7d978901f71821c0fa556a0a9e8b2 /apps/media/ajax | |
parent | fe0832746b8b084f36706e296896a3a7e56e98cb (diff) | |
download | nextcloud-server-0b19af5e10ea83400e114c8b2d4252fb8d50cc33.tar.gz nextcloud-server-0b19af5e10ea83400e114c8b2d4252fb8d50cc33.zip |
application/ogg is music to
Diffstat (limited to 'apps/media/ajax')
-rw-r--r-- | apps/media/ajax/api.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index bb4502690b5..9d9c14deb17 100644 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -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; } } |