BPM stripping the bad characters

Post your Server Bug Report

BPM stripping the bad characters

Unread postby Matt Zornig » 20 Feb 2017, 21:53

Code: Select all
=========================================================================================
VERSION: MADSONIC 6.2 | BUILD: 9080.619dd31.20161222.0327
REST: MADSONIC REST API v2.5.0, SUBSONIC REST API v1.14.0
OS: Linux 3.10.77 #8451 SMP Wed Jan 4 00:31:32 CST 2017 x86_64 GNU/Linux
SERVER: jetty/8.y.z-SNAPSHOT, java 1.8.0_121, Linux 3.10.77 (amd64) (330.8 MB / 457.0 MB)
HOST: Synology NAS 1815+ (DSM 6.0.2-8451 Update 9) | CPU: INTEL Atom C2538| ARCH: X64 | MEMORY: 6GB | HDD: 36TB, RAID6
BROWSER: FF 51.x
CLIENT: see browser
JAVA: ORACLE JDK 1.8.121
DESCRIPTION: see topic subject
REPRODUCIBLE: Yes.
logged in as admin
=========================================================================================

Not much of a bug report, but some kind of feature request too.

While going through the serverlog, I saw a lot of those lines:
Code: Select all
[2017-02-20 21:17:42,516] WARN JaudiotaggerParser - Error when parsing tags in /path/to/music/superdupermusicfile.mp3 For input string: "159 BPM"
java.lang.NumberFormatException: For input string: "159 BPM"
   at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
   at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
   at java.lang.Double.parseDouble(Double.java:538)
   at org.madsonic.service.metadata.JaudiotaggerParser.getRawMetaData(JaudiotaggerParser.java:177)
   at org.madsonic.service.metadata.MetaDataParser.getMetaData(MetaDataParser.java:48)
   at org.madsonic.service.MediaFileService.createMediaFile(MediaFileService.java:911)
   at org.madsonic.service.MediaFileService.updateChildren(MediaFileService.java:729)
   at org.madsonic.service.MediaFileService.getChildrenOf(MediaFileService.java:330)
   at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:418)
   at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:422)
   at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:422)
   at org.madsonic.service.MediaScannerService.doFolderScanLibrary(MediaScannerService.java:282)
   at org.madsonic.service.MediaScannerService.access$000(MediaScannerService.java:51)
   at org.madsonic.service.MediaScannerService$3.run(MediaScannerService.java:178)


Maybe its possible to strip all the alphabetical characters and leave only the numbers, when parsing the BPM tags?
That way, the log stays smaller, is easier to read and the BPM gets its way -hopefully correctly parsed- into the database.
User avatar
Matt Zornig
Contributor
Contributor
 
Posts: 121
Joined: 14 Feb 2017, 12:03
Has thanked: 21 times
Been thanked: 13 times

Re: BPM stripping the bad characters

Unread postby Madevil » 22 Feb 2017, 00:01

next snapshot build parse bpm values correctly if it contains "bpm" as string.

best regards
User avatar
Madevil
Administrator
Administrator
 
Posts: 881
Joined: 07 Dec 2012, 03:58
Has thanked: 1281 times
Been thanked: 947 times


Return to Bug Reports 6.x

Who is online

Users browsing this forum: No registered users and 1 guest