]> git.eli173.com Git - comics/commitdiff
betters
authorElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:05:35 +0000 (21:05 -0600)
committerElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:05:35 +0000 (21:05 -0600)
comics.js
node/runner.sh

index ef7db7e7d770615b07c7062aa577ab4654bbf39e..658c42621f59e712c0722fdacee6520e0d141daa 100644 (file)
--- a/comics.js
+++ b/comics.js
@@ -17,7 +17,12 @@ function getimageurl(number) {
     // takes the comic no (from the ?comic=<>) and gets the url we want
     // returns a promise?
     console.log(number)
-    fetch("https://qwantz.com/index.php?comic=" + number, {mode: "cors"})
+    //fetch("https://qwantz.com/index.php?comic=" + number, {mode: "cors"})
+    fetch("https://comics.eli173.com/id/" + number)
+       .then(req => return req.text())
+       .then(text => {
+           console.log(text)
+       })
 }
 
 
index 1e956be6e4de9866f7ddf1c6cbe16010c6f9bfba..89ad5cf1f06fa8ab5b31156d7e54d81b6c50708a 100755 (executable)
@@ -2,7 +2,7 @@
 
 # runner for comics api thingy
 
-
+touch ~/comics/node/hasrun
 while :
 do
     node index.js