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

getid3_wtv   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A Analyze() 0 10 1
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