summaryrefslogtreecommitdiffstats
path: root/lib/class/vainfo.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-04 02:49:12 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-04 02:49:12 +0000
commit491b530ccad65f0776880642714c3319a7a14fbf (patch)
tree79531e00c712c498ce113737c0efc4ba5492a732 /lib/class/vainfo.class.php
parent87ac3e4500f84a8212ec351e70e19191f0637bc1 (diff)
downloadampache-491b530ccad65f0776880642714c3319a7a14fbf.tar.gz
ampache-491b530ccad65f0776880642714c3319a7a14fbf.tar.bz2
ampache-491b530ccad65f0776880642714c3319a7a14fbf.zip
add a few more columns to the video view, tweak how it picks the title when indexing
Diffstat (limited to 'lib/class/vainfo.class.php')
-rw-r--r--lib/class/vainfo.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/class/vainfo.class.php b/lib/class/vainfo.class.php
index 8e78bb97..ffbd1b92 100644
--- a/lib/class/vainfo.class.php
+++ b/lib/class/vainfo.class.php
@@ -608,6 +608,9 @@ class vainfo {
$array = array();
+ $info = pathinfo($this->filename);
+
+ $array['title'] = $info['filename'];
$array['video_codec'] = $tags['video']['fourcc'];
$array['audio_codec'] = $tags['audio']['dataformat'];
$array['resolution_x'] = $tags['video']['resolution_x'];