diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-02-05 01:41:39 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-02-05 01:41:39 -0500 |
commit | 02286a12b812afe915556a3e43ed727eb70260a7 (patch) | |
tree | 9d48e4dc76fdff928c0f04e18f80cf076c68b8cc | |
parent | 860b7d3ed3f37bfb4789f5b4564a770ea19ed41b (diff) | |
download | ampache-02286a12b812afe915556a3e43ed727eb70260a7.tar.gz ampache-02286a12b812afe915556a3e43ed727eb70260a7.tar.bz2 ampache-02286a12b812afe915556a3e43ed727eb70260a7.zip |
Add fallback title to filename metadata source
If we didn't parse anything out, set it to the filename.
-rw-r--r-- | lib/class/vainfo.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php index b1d825bb..1244245c 100644 --- a/lib/class/vainfo.class.php +++ b/lib/class/vainfo.class.php @@ -973,11 +973,11 @@ class vainfo { } } + $results['title'] = $results['title'] ?: basename($filename); $results['size'] = filesize($filename); return $results; - - } // _parse_filename + } /** * _id3v2_tag_to_frame |