summaryrefslogtreecommitdiff
path: root/composed.c
diff options
context:
space:
mode:
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);