Car doesnt recognize my music downloaded with my own python app

Viewed 37

I created a little python app and included "pytube" a youtube library. The only purpose is to give the app a link to a youtube video and download it as mp3, everything is working fine and I can listen to the song on my computer. When I put the music on an USB Stick and plug it into my car, nothing happens and my car says the stick has no media. When I use some other mp3 files I have (not from my tool) the car recognizes the files and plays music. This is the code that I use to download the music, does anyone have an idea why my car doesnt recognize the mp3 file?

Update: The car is a Hyundai i10

while True:
    event, values = window.read()
    if event in ('Exit', None):
            break           # exit button clicked

    if event == 'Download':

        yTVideo =  YouTube(pyperclip.paste())
        destination = _path
        print('Downloading '+ yTVideo.title + ' to : '+ destination)
        window.refresh()
        video = yTVideo.streams.filter(only_audio = True).first()

        out_file = video.download(output_path=destination)

        base, ext = os.path.splitext(out_file)
        new_file = base + '.mp3'
        os.rename(out_file, new_file)

        print('Download Completed!')

  • tried on different computers/laptops -> works fine
  • tried differenct USB sticks -> same result, didnt work
1 Answers

Have you tried checking the MP3 ID3 Metadata Tags?

I encountered a similar problem while trying to play MP3 songs on an old MP3-Player.

The problem was that the MP3-Player didn't recognize the MP3 files because of missing ID3 Tags. After manually adding some metadata it worked again.

Maybe compare the metadata of the MP3's that work with the ones that don't and see which ID3 Tags are missing?

Its a shot in the dark but I hope it might help.

Related