Changeset 24433
- Timestamp:
- 2011-08-19T17:59:27+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/music-ir-src/trunk/perllib/plugins/MusicIRPlugin.pm
r22468 r24433 112 112 my ($pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli) = @_; 113 113 114 115 114 my $outhandle = $self->{'outhandle'}; 116 115 my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file); 116 117 my $top_section = $doc_obj->get_top_section(); 117 118 118 119 if ($self->{'compute_mir_features'} eq "true") … … 124 125 my ($features_ext) = ($features_filename =~ m/\.([^.]+)$/); 125 126 126 my $top_section = $doc_obj->get_top_section();127 127 128 128 my $mime_type = ($features_ext eq "arff") ? "text/plain" : "text/xml"; … … 135 135 #we have no text - adds dummy text and NoText metadata 136 136 $self->add_dummy_text($doc_obj, $doc_obj->get_top_section()); 137 138 $doc_obj->associate_file($filename_full_path, "audio.mp3", "audio/mpeg", $top_section); 137 139 138 140 return 1; … … 149 151 if ($self->{'retrieve_mir_metadata'} eq "true") { 150 152 my $top_section = $doc_obj->get_top_section(); 151 my $id3_titles = $doc_obj->get_metadata($top_section," ID3.Title");153 my $id3_titles = $doc_obj->get_metadata($top_section,"ex.ID3.Title"); 152 154 153 155 my $id3_title = shift @$id3_titles || "Unknown"; 154 156 155 my $id3_artists = $doc_obj->get_metadata($top_section," ID3.Artist");157 my $id3_artists = $doc_obj->get_metadata($top_section,"ex.ID3.Artist"); 156 158 my $id3_artist = shift @$id3_artists || "Unkown"; 157 159 … … 163 165 } 164 166 165 167 $doc_obj->associate_file($metadata_acexml_filename, "jsongminer.xml", 168 "text/xml", $top_section); 166 169 } 167 170
Note:
See TracChangeset
for help on using the changeset viewer.