From eb90d38cd710d4603f3782bc83b98f4471d013f0 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 27 Dec 2012 13:56:13 +0100 Subject: [PATCH] added missing extension 'mkv' for navigation --- source/net/yacy/cora/document/analysis/Classification.java | 2 +- source/net/yacy/search/query/SearchEvent.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/cora/document/analysis/Classification.java b/source/net/yacy/cora/document/analysis/Classification.java index 38a5f45fd..6458f6cfd 100644 --- a/source/net/yacy/cora/document/analysis/Classification.java +++ b/source/net/yacy/cora/document/analysis/Classification.java @@ -90,7 +90,7 @@ public class Classification { final String text = "htm,html,phtml,shtml,xhtml,php,php3,php4,php5,cfm,asp,aspx,tex,txt,jsp,mf,asp,aspx,csv,gpx,vcf,xsl,xml,pdf,doc,docx,xls,xlsx,ppt,pptx"; final String apps = "7z,ace,arc,arj,apk,asf,asx,bat,bin,bkf,bz2,cab,com,css,dcm,deb,dll,dmg,exe,java,gho,ghs,gz,hqx,img,iso,jar,lha,rar,sh,sit,sitx,tar,tbz,tgz,tib,torrent,vbs,war,zip"; final String audio = "aac,aif,aiff,flac,m4a,m4p,mid,mp2,mp3,oga,ogg,ram,sid,wav,wma"; - final String video = "3g2,3gp,3gp2,3gpp,3gpp2,3ivx,asf,asx,avi,div,divx,dv,dvx,env,f4v,flv,hdmov,m1v,m4v,m-jpeg,moov,mov,movie,mp2v,mp4,mpe,mpeg,mpg,mpg4,mv4,ogm,ogv,qt,rm,rv,vid,swf,webm,wmv"; + final String video = "3g2,3gp,3gp2,3gpp,3gpp2,3ivx,asf,asx,avi,div,divx,dv,dvx,env,f4v,flv,hdmov,m1v,m4v,m-jpeg,mkv,moov,mov,movie,mp2v,mp4,mpe,mpeg,mpg,mpg4,mv4,ogm,ogv,qt,rm,rv,vid,swf,webm,wmv"; final String image = "ai,bmp,cdr,cmx,emf,eps,gif,img,jpeg,jpg,mng,pct,pdd,pdn,pict,png,psb,psd,psp,tif,tiff,wmf"; final String ctrl = "sha1,md5,crc32,sfv"; diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.java index 3f3f8bdce..e82f05fd3 100644 --- a/source/net/yacy/search/query/SearchEvent.java +++ b/source/net/yacy/search/query/SearchEvent.java @@ -488,7 +488,10 @@ public final class SearchEvent { Iterator i = fcts.iterator(); while (i.hasNext()) { String ext = i.next(); - if (TextParser.supportsExtension(ext) != null && !Classification.isAnyKnownExtension(ext)) i.remove(); + if (TextParser.supportsExtension(ext) != null && !Classification.isAnyKnownExtension(ext)) { + //Log.logInfo("SearchEvent", "removed unknown externsion " + ext + " from navigation."); + i.remove(); + } } this.filetypeNavigator.inc(fcts); }