2017-02-22, 12:03
Hello,
This message is intended for linux users ... EDIT see my next post.
Before using Kodi, I used my own lyrics text files.
With kodi, I did not want to loose all my previous work.
So, I wrote 3 scripts to automate the job. EDIT - no more available, see below
In the zip file (see above link), you'll find 3 scripts - simply move them to your media folder.
Running them is easy : open a terminal, browse to the media folder used by Kodi, and type ./ the choosen script.
You have to press a key to start - or CtrlC to cancel.
Comments are in french, but you will understand them.
- AllInOne : this script scans all your folders, and generates only one text file with ALL your texts inside. You need a text editor able to edit big files such as glogg
my script removes lrc codes : you get a plain text file with all your lyrics.
- IsoToUtf8 : converts any txt file that was not encoded with Utf8.
it only converts iso-8859-1 files, but you can change the first variable...
I wrote this script because Kodi uses utf8 encoding, and I had too many iso files.
RemoveBlankLines : removes blank lines of all your lrc and txt files.
I wrote this one because some of my files had MANY blank lines, some no blank lines -> my lyrics are uniform now.
Those scripts are recursive. If you have a large library, be patient, as time is needed to check all subfolders.
I'm not a developer, so, for sure, you could write a faster code.
I did use all of them with success on a large music library.
Those scripts helped me so much that I wanted to share them. We never know ...
This message is intended for linux users ... EDIT see my next post.
Before using Kodi, I used my own lyrics text files.
With kodi, I did not want to loose all my previous work.
So, I wrote 3 scripts to automate the job. EDIT - no more available, see below
In the zip file (see above link), you'll find 3 scripts - simply move them to your media folder.
Running them is easy : open a terminal, browse to the media folder used by Kodi, and type ./ the choosen script.
You have to press a key to start - or CtrlC to cancel.
Comments are in french, but you will understand them.
- AllInOne : this script scans all your folders, and generates only one text file with ALL your texts inside. You need a text editor able to edit big files such as glogg
my script removes lrc codes : you get a plain text file with all your lyrics.
- IsoToUtf8 : converts any txt file that was not encoded with Utf8.
it only converts iso-8859-1 files, but you can change the first variable...
I wrote this script because Kodi uses utf8 encoding, and I had too many iso files.
RemoveBlankLines : removes blank lines of all your lrc and txt files.
I wrote this one because some of my files had MANY blank lines, some no blank lines -> my lyrics are uniform now.
Those scripts are recursive. If you have a large library, be patient, as time is needed to check all subfolders.
I'm not a developer, so, for sure, you could write a faster code.
I did use all of them with success on a large music library.
Those scripts helped me so much that I wanted to share them. We never know ...