Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Phoenix Edition Repo Info
#5
Code: (Select All)
$CONSOLE:ONLY
WIDTH 120, 70, 120, 100
IF _FILEEXISTS("temp.txt") THEN KILL "temp.txt"

com$ = "curl -H " + CHR$(34) + "Accept: application/vnd.github.v3+json" + CHR$(34)
com$ = com$ + " https://api.github.com/repos/QB64-Phoeni...e/releases"
'com$ = com$ + " https://api.github.com/repos/QB64Official/qb64/releases"
com$ = com$ + " >temp.txt"

SHELL com$
PRINT "Downloading..";
DO
_LIMIT 30
PRINT ".";
LOOP UNTIL _FILEEXISTS("temp.txt")
PRINT

OPEN "temp.txt" FOR BINARY AS #1
DO UNTIL EOF(1)
LINE INPUT #1, temp$
IF INSTR(temp$, "download_count") THEN PRINT MID$(temp$, 27),
IF INSTR(temp$, "browser_download_url") THEN
temp1$ = MID$(temp$, 33)
'temp1$ = MID$(temp1$, _INSTRREV(temp1$, "/") + 1)
PRINT temp1$
END IF
LOOP

PRINT
PRINT "Press <ESC> to exit."
DO
_LIMIT 30
LOOP UNTIL INKEY$ = CHR$(27)


New version of this little tool available, with a little better logic checking so that the file downloads fully before we start trying to read it. I've ran it several times now for testing, and it hasn't glitched out once like the old version did from time to time. Wink
Reply


Messages In This Thread
Phoenix Edition Repo Info - by SMcNeill - 05-11-2022, 01:59 AM
RE: Phoenix Edition Repo Info - by bplus - 08-07-2022, 07:37 PM
RE: Phoenix Edition Repo Info - by SMcNeill - 08-07-2022, 10:19 PM
RE: Phoenix Edition Repo Info - by bplus - 08-07-2022, 10:23 PM
RE: Phoenix Edition Repo Info - by SMcNeill - 10-09-2023, 12:41 PM
RE: Phoenix Edition Repo Info - by mnrvovrfc - 10-09-2023, 04:17 PM



Users browsing this thread: 2 Guest(s)