diff options
author | kaa <kaa@disroot.org> | 2024-06-16 03:22:53 -0700 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2024-06-16 03:22:53 -0700 |
commit | 668cd9eca08982c9efb5d8bb846cbf8a2e78047d (patch) | |
tree | 498b768b52c0641b63b291a1bd01480a895023ca /composed.c | |
parent | 9695f8b3e702b028fb01a09e7ca18eb381c49506 (diff) |
Switch from catbox.moe to mesacsclub.com.
Diffstat (limited to 'composed.c')
-rwxr-xr-x | composed.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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", "<h2>"); printf( "\t\t\t\t%d ", year); |