Skip to content

Commit

Permalink
Google Chrome Cache Parser #1568
Browse files Browse the repository at this point in the history
BUGFIX - If there are two files with the same name, the parser could
show the wrong file. Now the file is fetched based on the name and id
contained in the URL.
  • Loading branch information
felipecampanini authored and lfcnassif committed Sep 28, 2023
1 parent 544e7b9 commit c5fae0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void parse(InputStream indexFile, ContentHandler handler, Metadata metada

// Checking attachments image
for (DiscordAttachment att : dr.getAttachments()) {
if (ce2.getKey().contains(att.getFilename()) && !ce2.getName().contains("data")) {
if (ce2.getRequestURL().contains(att.getUrl().split("https://cdn.discordapp.com/attachments/")[1])) {
for (IItemReader ib : externalFiles) {
if (ib.getName() != null && ib.getName().equals(ce2.getName())) {
att.setMediaHash(ib.getHash());
Expand Down

0 comments on commit c5fae0d

Please sign in to comment.