Skip to content

Commit

Permalink
'#1859 Puts the CacheIndexParser in the second parsing queue and Discord
Browse files Browse the repository at this point in the history
Parser in the third.
  • Loading branch information
patrickdalla committed Nov 7, 2023
1 parent 48e33e8 commit df9ac99
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.apache.tika.mime.MediaTypeRegistry;

import iped.parsers.ares.AresParser;
import iped.parsers.browsers.chrome.CacheIndexParser;
import iped.parsers.discord.DiscordParser;
import iped.parsers.emule.KnownMetParser;
import iped.parsers.emule.PartMetParser;
Expand Down Expand Up @@ -45,7 +46,6 @@ public class QueuesProcessingOrder {

/** Definie as prioridades de processamento dos mimeTypes */
private static Map<MediaType, Integer> installTypesToPostProcess() {

Map<MediaType, Integer> mediaTypes = new HashMap<MediaType, Integer>();

// support for embedded splitted images, must be before all other artifacts
Expand All @@ -60,18 +60,20 @@ private static Map<MediaType, Integer> installTypesToPostProcess() {

// must be after sqlite processing to find storage_db.db
mediaTypes.put(SkypeParser.SKYPE_MIME, 3);

//must be processed after all files to link the attachments
mediaTypes.put(TelegramParser.TELEGRAM_USER_CONF, 2);
mediaTypes.put(TelegramParser.TELEGRAM_DB, 3);
mediaTypes.put(TelegramParser.TELEGRAM_DB_IOS, 3);

mediaTypes.put(MediaType.parse(DiscordParser.INDEX_MIME_TYPE), 2);
mediaTypes.put(CacheIndexParser.CHROME_INDEX_MIME_TYPE, 2);
mediaTypes.put(MediaType.parse(DiscordParser.CHAT_MIME_TYPE), 3);

mediaTypes.put(MediaType.parse(KnownMetParser.EMULE_MIME_TYPE), 2);
mediaTypes.put(MediaType.parse(PartMetParser.EMULE_PART_MET_MIME_TYPE), 2);
mediaTypes.put(MediaType.parse(AresParser.ARES_MIME_TYPE), 2);
mediaTypes.put(MediaType.parse(ShareazaLibraryDatParser.LIBRARY_DAT_MIME_TYPE), 2);

mediaTypes.put(WhatsAppParser.WA_DB, 2);
mediaTypes.put(WhatsAppParser.MSG_STORE, 3);
mediaTypes.put(WhatsAppParser.MSG_STORE_2, 4);
Expand Down

0 comments on commit df9ac99

Please sign in to comment.