Skip to content

Commit

Permalink
Add 'zimit' to test for scraper name
Browse files Browse the repository at this point in the history
Partially addresses #1203
  • Loading branch information
Jaifroid committed Jan 25, 2024
1 parent 30e6215 commit c528c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/lib/zimArchive.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ ZIMArchive.prototype.setZimType = function () {
});
if (archiveType !== 'zimit' && this.scraper) {
// Check if it's a zimit2 type archive by seeing if the scraper contains 'warc2zim'
archiveType = /warc2zim/i.test(this.scraper) ? 'zimit2' : archiveType;
archiveType = /warc2zim|zimit/i.test(this.scraper) ? 'zimit2' : archiveType;
}
this.zimType = archiveType;
console.debug('Archive type set to: ' + archiveType);
Expand Down

0 comments on commit c528c94

Please sign in to comment.