Skip to content

Commit

Permalink
remove getID3 lib
Browse files Browse the repository at this point in the history
  • Loading branch information
DakuTree committed Mar 10, 2017
1 parent 84e86c4 commit 12d73c2
Show file tree
Hide file tree
Showing 74 changed files with 0 additions and 35,407 deletions.
14 changes: 0 additions & 14 deletions ext/handle_mp3/main.php
Expand Up @@ -38,20 +38,6 @@ protected function create_image_from_data($filename, $metadata) {

$image->filesize = $metadata['size'];
$image->hash = $metadata['hash'];

//Cheat by using the filename to store artist/title if available
require_once('lib/getid3/getid3/getid3.php');
$getID3 = new getID3;
$ThisFileInfo = $getID3->analyze($filename, TRUE);

if (isset($ThisFileInfo['tags']['id3v2']['artist'][0]) && isset($ThisFileInfo['tags']['id3v2']['title'][0])) {
$image->filename = $ThisFileInfo['tags']['id3v2']['artist'][0]." - ".$ThisFileInfo['tags']['id3v2']['title'][0].".mp3";
} else if (isset($ThisFileInfo['tags']['id3v1']['artist'][0]) && isset($ThisFileInfo['tags']['id3v1']['title'][0])) {
$image->filename = $ThisFileInfo['tags']['id3v1']['artist'][0]." - ".$ThisFileInfo['tags']['id3v1']['title'][0].".mp3";
} else {
$image->filename = $metadata['filename'];
}

$image->ext = $metadata['extension'];
$image->tag_array = $metadata['tags'];
$image->source = $metadata['source'];
Expand Down
5 changes: 0 additions & 5 deletions lib/getid3/THIS_HAS_BEEN_MODIFIED.txt

This file was deleted.

211 changes: 0 additions & 211 deletions lib/getid3/getid3/extension.cache.dbm.php

This file was deleted.

0 comments on commit 12d73c2

Please sign in to comment.