Completed
Push — vendor/getid3 ( 69b815...49c253 )
by Pauli
04:26 queued 01:37
created

getid3_wtv::Analyze()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
/////////////////////////////////////////////////////////////////
3
/// getID3() by James Heinrich <[email protected]>               //
4
//  available at https://github.com/JamesHeinrich/getID3       //
5
//            or https://www.getid3.org                        //
6
//            or http://getid3.sourceforge.net                 //
7
//  see readme.txt for more details                            //
8
/////////////////////////////////////////////////////////////////
9
//                                                             //
10
// module.audio.wtv.php                                        //
11
// module for analyzing WTV (Windows Recorded TV Show)         //
12
//   audio-video files                                         //
13
// dependencies: NONE                                          //
14
//                                                            ///
15
/////////////////////////////////////////////////////////////////
16
17
18
class getid3_wtv extends getid3_handler
19
{
20
	/**
21
	 * @return bool
22
	 */
23
	public function Analyze() {
24
		$info = &$this->getid3->info;
25
26
		$info['fileformat']          = 'wtv';
27
		$info['video']['dataformat'] = 'wtv';
28
29
		$this->error('WTV (Windows Recorded TV Show) files not properly processed by this version of getID3() ['.$this->getid3->version().']');
30
31
		return true;
32
	}
33
34
}
35