Add comment for clarity

This commit is contained in:
Alex Cabal 2022-07-27 11:30:56 -05:00
parent f2ffacdff8
commit c2dabfbe2d

View file

@ -405,6 +405,7 @@ class Ebook{
$this->Sources[] = new EbookSource(SOURCE_PROJECT_GUTENBERG_CANADA, $e); $this->Sources[] = new EbookSource(SOURCE_PROJECT_GUTENBERG_CANADA, $e);
} }
elseif(mb_stripos($e, 'archive.org/details') !== false){ elseif(mb_stripos($e, 'archive.org/details') !== false){
// `/details` excludes Wayback Machine URLs which may sometimes occur, for example in Lyrical Ballads
$this->Sources[] = new EbookSource(SOURCE_INTERNET_ARCHIVE, $e); $this->Sources[] = new EbookSource(SOURCE_INTERNET_ARCHIVE, $e);
} }
elseif(mb_stripos($e, 'hathitrust.org/') !== false){ elseif(mb_stripos($e, 'hathitrust.org/') !== false){