Permalink
Browse files

Let a chance for other parsers on audioTagParser error

As done in all other parsers, eventually falling back in the end to the
genericParser which creates a minimal index entry.
  • Loading branch information...
luccioman committed Feb 28, 2018
1 parent 9e5846a commit 978e2be95bc215eea193e01f9f3ba1be8748a2f6
Showing with 1 addition and 22 deletions.
  1. +1 −22 source/net/yacy/document/parser/audioTagParser.java
@@ -314,27 +314,7 @@ public audioTagParser() {
};
return docs;
} catch (final Exception e) {
// return a generic document as default
docs = new Document[]{new Document(
location,
mimeType,
charset,
this,
null,
null,
singleList(filename), // title
null, // author
location.getHost(),
null,
null,
0.0d, 0.0d,
location.toTokens(),
null,
null,
null,
false,
new Date()
)};
throw new Parser.Failure("Unexpected error while parsing audio file. " + e.getMessage(), location);
} finally {
if (tempFile != null) {
tempFile.delete();
@@ -344,7 +324,6 @@ public audioTagParser() {
*/
}
}
return docs;
}
/**

0 comments on commit 978e2be

Please sign in to comment.