Last active
August 28, 2017 14:12
-
-
Save s4kr4/29727675aec6ea1e1251a93d16179b7b to your computer and use it in GitHub Desktop.
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
from gmusicapi import Musicmanager | |
import sys | |
argv = sys.argv | |
exts = ['.mp3', '.m4a', '.wma', '.flac', '.ogg', '.m4p'] | |
mm = Musicmanager() | |
mm.login() | |
for ext in exts: | |
if (argv[1].find(ext) != -1): | |
mm.upload(argv[1]) | |
mm.logout() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment