Skip to content

Instantly share code, notes, and snippets.

@s4kr4
Last active August 28, 2017 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s4kr4/29727675aec6ea1e1251a93d16179b7b to your computer and use it in GitHub Desktop.
Save s4kr4/29727675aec6ea1e1251a93d16179b7b to your computer and use it in GitHub Desktop.
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