Browse Source

Добавил зеркало 'zhurnal.lib.ru' для парсинга samlib

Book Pauk 6 years ago
parent
commit
cf5203687e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      server/core/BookConverter/index.js

+ 2 - 1
server/core/BookConverter/index.js

@@ -29,7 +29,8 @@ class BookConverter {
 
             const parsedUrl = new URL(url);
             if (parsedUrl.hostname == 'samlib.ru' ||
-                parsedUrl.hostname == 'budclub.ru') {
+                parsedUrl.hostname == 'budclub.ru' ||
+                parsedUrl.hostname == 'zhurnal.lib.ru') {
                 await fs.writeFile(outputFile, this.convertSamlib(data));
                 return;
             }