Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reading genre from media (thanks, nielsb!)

  • Loading branch information...
commit d29615992715e8fb895e7cf0d338db42a800e47e 1 parent 948447d
@Raptor399 Raptor399 authored
Showing with 3 additions and 0 deletions.
  1. +1 −0  CHANGELOG
  2. +2 −0  src/main/java/net/pms/dlna/MediaInfoParser.java
View
1  CHANGELOG
@@ -4,6 +4,7 @@ Changelog:
1.??.? - 2012-??-??
Language updates:
- added Turkish - thanks, BrYaNT
+ Reading genre from media (thanks, nielsb!)
1.52.0 - 2012-03-22
View
2  src/main/java/net/pms/dlna/MediaInfoParser.java
@@ -152,6 +152,8 @@ public synchronized static void parse(DLNAMediaInfo media, InputFile file, int t
currentAudioTrack.setAlbum(ovalue);
} else if (key.equals("Performer") && step == MediaInfo.StreamKind.General) {
currentAudioTrack.setArtist(ovalue);
+ } else if (key.equals("Genre") && step == MediaInfo.StreamKind.General) {
+ currentAudioTrack.setGenre(ovalue);
} else if (key.equals("Recorded_Date") && step == MediaInfo.StreamKind.General) {
try {
currentAudioTrack.setYear(Integer.parseInt(value));
Please sign in to comment.
Something went wrong with that request. Please try again.