Browse Source

Make linter happy (and fix a mistake)

Godzil 5 years ago
parent
commit
d19992f0d3
4 changed files with 6 additions and 5 deletions
  1. 1 1
      src/cli.ts
  2. 0 1
      src/my_request.ts
  3. 4 2
      src/series.ts
  4. 1 1
      src/video/stream.ts

+ 1 - 1
src/cli.ts

@@ -12,7 +12,7 @@ request.get({ uri: 'https://box.godzil.net/getVersion.php?tool=crunchy&v=' + cur
                   (error: Error, response: any, body: any) =>
 {
   const onlinepkg = JSON.parse(body);
-  if (onlinepkg.status = 'ok')
+  if (onlinepkg.status === 'ok')
   {
     let tmp = current_version.split('.');
     const cur = (Number(tmp[0]) * 10000) + (Number(tmp[1]) * 100) + Number(tmp[2]);

+ 0 - 1
src/my_request.ts

@@ -178,7 +178,6 @@ export function getUserAgent(): string
   return defaultHeaders['User-Agent'];
 }
 
-
 /**
  * Performs a GET request for the resource.
  */

+ 4 - 2
src/series.ts

@@ -217,12 +217,14 @@ function pageScrape(config: IConfig, task: IConfigTask, done: (err: any, result?
 
       if ($('.availability-notes-low').length)
       {
-        log.warn('This serie may have georestriction and some missings episode (like some dubs) [Message: ' +  $('.availability-notes-low').text() + '].');
+        log.warn('This serie may have georestriction and some missings episode (like some dubs)' +
+                 ' [Message: ' +  $('.availability-notes-low').text() + '].');
       }
 
       if ($('.availability-notes-high').length)
       {
-        log.warnMore('This serie probably have georestriction and will miss some episodes [Message: ' +  $('.availability-notes-high').text() + '].');
+        log.warnMore('This serie probably have georestriction and will miss some episodes' +
+                     ' [Message: ' +  $('.availability-notes-high').text() + '].');
       }
 
       $('.episode').each((i, el) => {

+ 1 - 1
src/video/stream.ts

@@ -3,7 +3,7 @@ import childProcess = require('child_process');
 import os = require('os');
 import path = require('path');
 
-import my_request = require('../my_request')
+import my_request = require('../my_request');
 import log  = require('../log');
 
 /**