Make linter happy (and fix a mistake)
This commit is contained in:
parent
a44d1ae668
commit
d19992f0d3
@ -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]);
|
||||
|
||||
@ -178,7 +178,6 @@ export function getUserAgent(): string
|
||||
return defaultHeaders['User-Agent'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Performs a GET request for the resource.
|
||||
*/
|
||||
|
||||
@ -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) => {
|
||||
|
||||
@ -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');
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user