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:
parent
64df5b6213
commit
2e4141d2f5
2 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
v.3.3.2-Alpha4
|
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
|
- Added "Keyword" search which searches title, artist name
|
||||||
and album name, also forced 'quick search' to always
|
and album name, also forced 'quick search' to always
|
||||||
use Keyword (Thx Rubin)
|
use Keyword (Thx Rubin)
|
||||||
|
|
|
@ -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']['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']['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']['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 {
|
else {
|
||||||
$this->result['ogg']['title'] = $this->info['ogg']['comments']['title'][0];
|
$this->result['ogg']['title'] = $this->info['ogg']['comments']['title'][0];
|
||||||
$this->result['ogg']['artist'] = $this->info['ogg']['comments']['artist'][0];
|
$this->result['ogg']['artist'] = $this->info['ogg']['comments']['artist'][0];
|
||||||
$this->result['ogg']['album'] = $this->info['ogg']['comments']['album'][0];
|
$this->result['ogg']['album'] = $this->info['ogg']['comments']['album'][0];
|
||||||
$this->result['ogg']['author'] = $this->info['ogg']['comments']['author'][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];
|
$this->result['ogg']['year'] = $this->info['ogg']['comments']['date'][0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue