From 668cd9eca08982c9efb5d8bb846cbf8a2e78047d Mon Sep 17 00:00:00 2001 From: kaa Date: Sun, 16 Jun 2024 03:22:53 -0700 Subject: Switch from catbox.moe to mesacsclub.com. --- composed.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'composed.c') diff --git a/composed.c b/composed.c index c913113..ef1d5c7 100755 --- a/composed.c +++ b/composed.c @@ -9,7 +9,8 @@ pad(char *site, char *p) { char date[11], lyrline[MAX], name[32]; char lyrfn[64] = "lyrics/"; - char url[64] = "https://files.catbox.moe/"; +/* char url[64] = "https://files.catbox.moe/"; */ + char url[64] = "https://mesacsclub.com/kaa/"; int year, month, day, i; FILE *lyrics; char *humonth[] = { @@ -46,14 +47,14 @@ pad(char *site, char *p) p = strstr(p, "--") + 2; i = 1; - while ( ( p[i] == '-' && p[i-1] == '-' ) == 0 ) { + while (p[i] != '.') { name[i-1] = p[i-1]; ++i; } name[i-1] = '\0'; - p = strstr(p, "SLASH") + 5; - strcat(url, p); + strcat(url, name); + strcat(url, ".mp3"); printf("\t\t\t%s\n", "

"); printf( "\t\t\t\t%d ", year); -- cgit v1.2.3