![]() If you’re going to be uploading music, you’ll likely want Libav’s avconv installed and in your system path, along with at least libmp3lame. The reason I say this step isn't required is because the Google Music API website says: I have since successfully removed duplicates without LibAV, but I did have ffmpeg in my PATH already. This probably isn't required, but it's what I did the first time I did this.I used the answer by neves to develop this answer. (Optional) Forbid less secure apps from accessing your Google account. If you just see a blank window, you probably forgot to allow less secure apps to access your account. IDLE (Python GUI) → file → open → kill_dupes.py IDLE should be included with all Python installs. Oddly enough, by running the script from IDLE, it worked fine. Kill_dupes.py and maybe its parent program gmusicapi crash on Unicode characters like つんく♂. Type y and press Enter to remove them, or n to not remove them. The program prints a list of the duplicate tracks it found. Press Enter to run the script: Successfully logged in. Run Python with the script you made: C:\Users\YourWindowsUsername>c:\Python27\python.exe c:\Python27\kill_dupes.py You'll see a Window with this written: C:\Users\YourWindowsUsername> ( Win R opens the Run dialog, cmd is the command prompt. Put the modified kill_dupes.py script somewhere you can find it. ( Note: you may wish to change it back after you are done with this script.) In that email, there is a link to change the setting. If you don't do this, Google will email you telling that they blocked someone accessing your account the first time you run the script. Save the file with the edits you made.Īllow less secure apps to access your account via Google. Replace the word username with your Google username, and the word password with your Google password. logged_in = api.login('username', 'password') On line #89, you'll see this (line numbers added for ease of reading): 88. Click "download ZIP" → Extract the ZIP → Rename kill-dupes to kill-dupes.py → Right click → edit with Notepad (or Notepad , or anything similar) → Ctrl-F ("find") for "username".On the right side of the Google Music Dupe Killer page: LibAV or ffmpeg are probably not required for our purposes. The quick, lazy workaround is to invoke it specifically: C:\Python27\Scripts\pip.exe install gmusicapi On Windows, pip is not added to the PATH environment variable. You should use "pip" (Python's built-in installer script) to install it. One of the dependencies of gmusicapi requires it. If using Windows, install the Microsoft Visual C Compiler for Python 2.7.(I used Python 2.7.10 Do not use any Python 3.x.y version - I couldn't get it to work with this script.) Install the latest Python 2.7.x version.From a PC running Windows 10 圆4 (64-bit):
0 Comments
Leave a Reply. |