bcicen / somacli

:musical_note: Commandline SomaFM internet radio player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Songs with Quotation marks in the title of the song being cut off

fornitsumfornis opened this issue · comments

When songs have a quotation mark in the title it is cut off way early. For example a cover of Ozzy's "I Don't know" because "I Don". I managed to patch this so that it doesn't cut off at the the first quotation mark. Sadly, on the off chance that a song title contains two quotation marks it will get cut off at the second quotation mark. Not perfect, but dammit, it's progress! I attached the script below. It's my first bug fix/patch so hopefully I did everything right.

somacli.txt

I looked at the line being parsed from mplayer log:

ICY Info: StreamTitle='Pairs - A Surgeon's Here';StreamUrl='';"

and updated the script to parse the line between first ' and ;, then cut off the trailing ' in commit 5f33305.

Thanks for the input!!