summaryrefslogtreecommitdiff
path: root/composed.c
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2024-06-16 03:22:53 -0700
committerkaa <kaa@disroot.org>2024-06-16 03:22:53 -0700
commit668cd9eca08982c9efb5d8bb846cbf8a2e78047d (patch)
tree498b768b52c0641b63b291a1bd01480a895023ca /composed.c
parent9695f8b3e702b028fb01a09e7ca18eb381c49506 (diff)
Switch from catbox.moe to mesacsclub.com.
Diffstat (limited to 'composed.c')
-rwxr-xr-xcomposed.c9
1 files changed, 5 insertions, 4 deletions
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", "<h2>");
printf( "\t\t\t\t%d ", year);