Skip to content

Commit

Permalink
Use GetExtensionMime for extraction methods; minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwiebe committed Aug 16, 2019
1 parent 9b3a845 commit 6ffb43c
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 33 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,10 @@
<!-- see issue #302
<groupId>org.apache.tika</groupId>
-->
<groupId>com.github.jrwiebe.tika</groupId>
<groupId>com.github.archivesunleashed.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>${tika.version}</version>
<classifier>shady</classifier>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ object GetExtensionMime {
if (urlExt != null && !urlExt.isEmpty) {
// Reconcile Tika list and FilenameUtils extension
if (tikaExtensions.size > 1) {
if (tikaExtensions.contains(urlExt)) {
if (tikaExtensions.contains("." + urlExt)) {
ext = urlExt
} else {
ext = tikaExtensions(0).substring(1)
Expand Down
Loading

0 comments on commit 6ffb43c

Please sign in to comment.