Added function to convert URI in valid url to get new track

I have clean the code too.

See you