You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Leszek Sliwko (Jira)" <ji...@apache.org> on 2024/09/21 20:00:00 UTC
[jira] [Updated] (TIKA-4314) CompositeParser returns only one parser per content type
[ https://issues.apache.org/jira/browse/TIKA-4314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leszek Sliwko updated TIKA-4314:
--------------------------------
Description:
External parsers can have many supported content types, but information is lost in CompositeParser:
public Map<MediaType, Parser> getParsers(ParseContext context) {
Map<MediaType, Parser> map = new HashMap<>();
for (Parser parser : parsers) {
for (MediaType type : parser.getSupportedTypes(context)) {
map.put(registry.normalize(type), parser); }
}
return map;
}
To recreate - parse any avi file, the exiftool will by picked up first. The ffmpeg parser won't be executed.
was:
External parsers can have many supported content types, but information is lost in CompositeParser:
public Map<MediaType, Parser> getParsers(ParseContext context) {
Map<MediaType, Parser> map = new HashMap<>();
for (Parser parser : parsers) {
for (MediaType type : parser.getSupportedTypes(context)) {
map.put(registry.normalize(type), parser);
}
}
return map;
}
To recreate - parse any avi file, the exif will by picked up first. The ffmpeg parser won't be executed.
> CompositeParser returns only one parser per content type
> --------------------------------------------------------
>
> Key: TIKA-4314
> URL: https://issues.apache.org/jira/browse/TIKA-4314
> Project: Tika
> Issue Type: Bug
> Components: core
> Affects Versions: 2.9.2
> Reporter: Leszek Sliwko
> Priority: Major
>
> External parsers can have many supported content types, but information is lost in CompositeParser:
>
> public Map<MediaType, Parser> getParsers(ParseContext context) {
> Map<MediaType, Parser> map = new HashMap<>();
> for (Parser parser : parsers) {
> for (MediaType type : parser.getSupportedTypes(context)) {
> map.put(registry.normalize(type), parser); }
> }
> return map;
> }
>
> To recreate - parse any avi file, the exiftool will by picked up first. The ffmpeg parser won't be executed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)