Print "Deleting duplicates from " playlist "." Playlists = api.get_all_user_playlist_contents() Logged_in = api.login('username', 'password', Mobileclient.FROM_MAC_ADDRESS) Print " Will delete all duplicate songs within each playlist" Print " found duplicate with trackId: " trackId ", deleting"Īpi.remove_entries_from_playlist(entryId) Print "ERROR: No playlist '" name "'found" # TODO remove this unused function, previously used to return tracks from a given playlistĭef get_playlist_tracks(name, playlists): Now, to remove duplicates from Google Music playlists, first you'll need to create a brand new text file in your c:\Python27 directory and paste this code into it: #!/usr/bin/env python PART 2 - REMOVE DUPLICATE SONGS FROM ALL OF YOUR PLAYLISTSįor this procedure, I'm assuming you've already completed the steps in Part 1, and therefore you already have Python and the other programs installed. But for the gmusicapi step, you simply enter the command and the pip.exe program downloads and installs it for you. I mistakenly spent some time trying to find a link to download another program, just as we did in the first two steps. When you install the Google Music API, you literally just need to open a command prompt and type: C:\Python27\Scripts\pip.exe install gmusicapi As someone who basically had never heard of Python before I started trying to fix Google Music, following this guide worked for me the very first time. Visit this link and scroll down to the answer with the step-by-step guide. PART 1 - REMOVE DUPLICATE SONGS FROM YOUR ENTIRE LIBRARY In any case, here's what I found and how I got it to work without any previous knowledge of Python. I'm very perplexed as to why Google doesn't offer its own utility to remove duplicates. I'm adding this info here because it took me a long time to find a solution, which I had to piece together from my sites. If you're using Windows, have you synced your music from iTunes and ended up with a bunch of duplicates? In my case, I had hundreds of duplicate songs in my Google Music playlists.
0 Comments
Leave a Reply. |