crisbal / album-splitter

Split single-file MP3 albums into separate tracks. Downloads from YouTube supported.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

​ inserted at the start of (nearly) every track

Krigsmaskine opened this issue · comments

Hi,

Love this bit of code and it has particularly helped me in sorting out music for game nights. There is a strange tendency, that I cannot nail down, that it very often inserts ​ into the start of the song title. It is even included in the dry run output;

image

tracks.txt

I do not know what exactly I am doing wrong, or why it only happens sometimes. Let me know if you need something else for troubleshooting.

Screenshot_2021-04-23-18-17-07-196_com android chrome

Hello, I also see the strange symbol in the tracks.txt file, see the attached screenshot, so it is definitely because of that. It is possible that your text editor does not show the symbol. Try to use an advanced text editor to clear the file up (I suggest Visual Studio Code) and make sure that the file encoding is set as UTF-8 (it is a setting you can specify even in standard notepad when you save the file)

Ah shoot, I'm embarrassed, you are right. Thanks for checking it, dunno why I can't see it in my notepad programs (notepad++), but Wordpad shows it for some reason.

Ah shoot, I'm embarrassed, you are right. Thanks for checking it, dunno why I can't see it in my notepad programs (notepad++), but Wordpad shows it for some reason.

Open file in notepad++ > Encoding(tab) > Convert to ANSI .... -> Search(tab) >Replace > What to find: "?" and press "Replace all"
save and that's it

you can also create script to replace non utf8 char with regex
cleanString = string.replace(/[^\x00-\xFF]/g, "")