Permalink
Browse files

Reading genre from media (thanks, nielsb!)

  • Loading branch information...
1 parent 948447d commit d29615992715e8fb895e7cf0d338db42a800e47e @Raptor399 Raptor399 committed Mar 25, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 CHANGELOG
  2. +2 −0 src/main/java/net/pms/dlna/MediaInfoParser.java
View
@@ -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
@@ -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));

0 comments on commit d296159

Please sign in to comment.