From 75920aa620379542289c61841fe5c079bd8197e5 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Thu, 29 Dec 2016 13:19:28 +0530 Subject: [PATCH] add info to update meta tags for compatibility with old players --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 97742e1..5086c8c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,17 @@ ◘ Downloading a song using spotify link will automatically fix its meta-tags and add a nice a albumart to the song. +◘ If you are an old user and want to see the meta tags with Windows Media Player and other old players; manipulate the below snippet accordingly: + +``` +import eyed3 +import os +for x in os.listdir('/home/pi/Spotify-Downloader/Music/'): + if x.endswith('.mp3'): + audiofile = eyed3.load('/home/pi/Spotify-Downloader/Music/' + x) + audiofile.tag.save(version=(2,3,0)) +``` + That's how your Music library will look like!