1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

fixed genre pickup in oggs

This commit is contained in:
Karl 'vollmerk' Vollmer 2005-12-18 09:43:44 +00:00
parent 64df5b6213
commit 2e4141d2f5
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,8 @@
--------------------------------------------------------------------------
v.3.3.2-Alpha4
- Fixed problem where Genre on OGG was not being correctly
picked up by catalog (Thx redswami)
- Added "Keyword" search which searches title, artist name
and album name, also forced 'quick search' to always
use Keyword (Thx Rubin)

View file

@ -155,12 +155,14 @@ class AudioInfo {
$this->result['ogg']['artist'] = iconv("UTF-8",conf('site_charset') . "//TRANSLIT", $this->info['ogg']['comments']['artist'][0]);
$this->result['ogg']['album'] = iconv("UTF-8",conf('site_charset') . "//TRANSLIT", $this->info['ogg']['comments']['album'][0]);
$this->result['ogg']['author'] = iconv("UTF-8",conf('site_charset') . "//TRANSLIT", $this->info['ogg']['comments']['author'][0]);
$this->result['ogg']['genre'] = iconv("UTF-8",conf('site_charset') . "//TRANSLIT", $this->info['ogg']['comments']['genre'][0]);
}
else {
$this->result['ogg']['title'] = $this->info['ogg']['comments']['title'][0];
$this->result['ogg']['artist'] = $this->info['ogg']['comments']['artist'][0];
$this->result['ogg']['album'] = $this->info['ogg']['comments']['album'][0];
$this->result['ogg']['author'] = $this->info['ogg']['comments']['author'][0];
$this->result['ogg']['genre'] = $this->info['ogg']['comments']['genre'][0];
}
$this->result['ogg']['year'] = $this->info['ogg']['comments']['date'][0];