Author Topic: Get Lyrics to songs using Online API!  (Read 6482 times)

0 Members and 1 Guest are viewing this topic.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Get Lyrics to songs using Online API!
« Reply #15 on: July 22, 2020, 06:55:39 am »
@SierraKen , When I run my code I have NO extra lines between anything, even in the output file. Are you sure you ran my latest code?
Strange.... When I run this exact same code at home on my desktop I have no lines between anything except where they should be. Running them on my work laptop I get lines like you described...... I'll have to see why this is happening. That latest code I posted works perfectly on my home PC.
EDIT: Even weirder, I ran the code again and had no lines like my picture shows. Then I ran it again and had the same lines like before. This is some weird goings-on.
EDIT AGAIN: I ran the code back to back several times without annoying lines like you were showing. *shrug*
« Last Edit: July 22, 2020, 07:04:57 am by SpriggsySpriggs »
Shuwatch!

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Get Lyrics to songs using Online API!
« Reply #16 on: July 22, 2020, 07:12:11 am »
Never mind, it's going to require a few IF ELSE statements. I think the majority of the issue is that the site is inconsistent with usage of \r and \n. I tried one song, it looked perfect. I tried another, there were absolutely no lines in between, even between verses so it looked worse. I'll have to add some conditional statements for sure.
« Last Edit: July 22, 2020, 07:17:24 am by SpriggsySpriggs »
Shuwatch!

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: Get Lyrics to songs using Online API!
« Reply #17 on: July 22, 2020, 03:16:29 pm »
Wild Spriggs. Like I said, their website where the program gets the data does the same thing. So yeah, it would need some IF/THEN statements, somehow.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Get Lyrics to songs using Online API!
« Reply #18 on: July 22, 2020, 05:01:15 pm »
Oops, sorry. I didn't realize my previous reply was there. Ignore the previous version of this message.
« Last Edit: July 22, 2020, 05:11:17 pm by SpriggsySpriggs »
Shuwatch!

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: Get Lyrics to songs using Online API!
« Reply #19 on: July 22, 2020, 05:12:43 pm »
Yeah, probably some loose variable on their end or something. Anyway, no big deal. Like I said, we can always use  the Enter key or Back Space on Notepad. :)

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Get Lyrics to songs using Online API!
« Reply #20 on: July 22, 2020, 05:55:18 pm »
Yeah. Something. I'll look at it in depth this weekend, perhaps. I might find the perfect IF ELSE scenario.
Shuwatch!