Skip to content

Commit

Permalink
downloadExisting was not working; fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
itskenny0 authored Oct 6, 2020
1 parent a71fe13 commit eb29646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dumpia.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Dumpia {
/* Log format and strings */
const LOG_FORMAT = "[%s][%s] %s" . PHP_EOL; // $date, $pid, $msg

const LOG_STARTUP = "dumpia - v1.2 - https://github.com/itskenny0/dumpia";
const LOG_STARTUP = "dumpia - v1.21 - https://github.com/itskenny0/dumpia";
const LOG_CURL_FETCHED = "cURL: Got HTTP/%s, received %s bytes.";
const LOG_POST_EXTRACT = "Extracted %s posts from page %s.";
const LOG_JSON_OK = "JSON: Decode OK";
Expand Down Expand Up @@ -242,7 +242,7 @@ private function curlToDisk($url, $target) {

}

$cliArgs = array("key:", "fanclub:", "output:", "verbose");
$cliArgs = array("key:", "fanclub:", "output:", "verbose", "downloadExisting");

$options = getopt('', $cliArgs);
if(!isset($options['key']) || !isset($options['fanclub']) || !isset($options['output'])) {
Expand Down

0 comments on commit eb29646

Please sign in to comment.