forked from maxkirchoff/google-music-dupe-killer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally import credentials from external file and resolve maxkirch…
…off#28 Add support for optional credentials.py - Allows sharing user credentials between scripts. - Prevents accidental public commits of live credentials. Users can now easily specifiy an android_id other than FROM_MAC_ADDRESS - Workaround for simon-weber/gmusicapi#408 - android_id can also be specified in the optional credentials file Resolves: maxkirchoff#28
- Loading branch information
Showing
4 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea | ||
.DS_Store | ||
.project | ||
.pydevproject | ||
.pydevproject | ||
credentials.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,25 @@ These are incredibly simple scripts, but do require a few small configurations. | |
* If you do not have pip or are running windows, please see [Unofficial Google Music API usage](http://unofficial-google-music-api.readthedocs.org/en/latest/usage.html) | ||
|
||
### Change login credentials | ||
* Near line 89, change the 'username' and 'password' to your Google account credentials. | ||
* Near line 12 in the script, change the 'username' and 'password' to your Google account credentials. | ||
* Alternatively, create an empty file calleded 'credentials.py' in the script directory and set the username and password variables there. | ||
|
||
```python | ||
# credentials.py | ||
username = '[email protected]' | ||
password = 'changeme' | ||
#android_id = 'deadbeefc0decafe' | ||
``` | ||
|
||
* NOTE: Users with 2-step authentication enabled will have to create an App Specific Key/Password. | ||
Login into your Google account and head to https://security.google.com/settings/security/apppasswords, there you will be able to manually generate an App Specific password. | ||
After creating the Key/Password, just use it to login into this App, together with your usual Google username/email. | ||
|
||
* NOTE: If you see the error message "a valid MAC could not be determined." | ||
you are running into a [known issue](https:/simon-weber/gmusicapi/issues/408) with the Google Music API. | ||
|
||
To workaround, set a new 16 digit hexadecimal number as your android_id on line 17 or in credentials.py. | ||
|
||
### Run kill_dupes | ||
* The script will automatically detect and remove duplicates on any songs in your library. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters