Package: youtube-music-uploader
Youtube Music UploaderDISCLAIMER: As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support on Patreon.(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)This program will create a Daemonic folder to upload your music library to Youtube MusicThis work is based uponSigma67’s Youtube Music API.InstallationThis program needswatchdog,ytmusicapiandrequestsPython libraries to work.apt-get install python3-pip build-essential
pip3 install youtube-music-uploaderOnce installed, You have to authenticate to Youtube Music via theyoutube-music-authcommand# Usage youtube-music-auth [path_to_oauth_cred_file=~/oauth]If first parameter is not defined, the script will try to store/load your oauth credentials through the~/oauthfile.Then follow the setup instructions providedhttps://ytmusicapi.readthedocs.io/en/latest/setup.html#copy-authentication-headers.UsageUploaderThis program will scan a given directory for new elements to upload them to Youtube Music.
First, launch the daemon to watch a directory new inputs.usage: youtube-music-upload [-h] [-v] [--directory DIRECTORY] [--oauth OAUTH] [-r]
                          [-o] [--deduplicate_api DEDUPLICATE_API]

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show version number and exit
  --directory DIRECTORY, -d DIRECTORY
                        Music Folder to upload from (default: .)
  --oauth OAUTH, -a OAUTH
                        Path to oauth file (default: ~/oauth)
  -r, --remove          Remove the file on your hard drive if it was already successfully uploaded (default: False)
  -o, --oneshot         Upload folder and exit (default: False)
  -l, --listener_only   Only listen for new files, does not parse all files at launch (default: False)
  -e ERROR_FILE_PATH, --log ERROR_FILE_PATH
                        Log to a specified file path (Default stderr)
  -w DEDUPLICATE_API, --deduplicate_api DEDUPLICATE_API
                        Deduplicate API (should be HTTP and compatible with
                        the manifest (see README)) (default: None)DeduplicateThis program will send all files or the specified file to the deduplication APIusage: youtube-music-upload-deduplicate [-h] --deduplicate_api DEDUPLICATE_API
                                   [--directory DIRECTORY] [--file FILE]
                                   [--remove]

optional arguments:
  -h, --help            show this help message and exit
  --directory DIRECTORY, -d DIRECTORY
                        Music Folder to deduplicate
  --file FILE, -f FILE
                        Music file path to deduplicate
  -r, --remove          Unmark specified file/folder (default: False)
  -w DEDUPLICATE_API, --deduplicate_api DEDUPLICATE_API
                        Deduplicate API (should be HTTP and compatible with
                        the manifest (see README)) (default: None)Deduplication APIPrefaceThis API is completely optional. You don’t have to implement this. It will only help you to avoid useless Google callsThanks to Brian Doherty, a local snapshot is now made to avoid external deduplication calls on local updated files.You can use your own API implementation to avoid multiple Youtube Music uploads.
This API should match with the following requirements.You may want to use this existing one :Google MusicManager Deduplicate API.Existspathmethodparameterstatus code/GETnamedescriptionvaluedescriptionpathpath of your file200 or 204Your file was already uploaded404 (or whatever)Your file was NOT uploadedSavingpathmethodparameterstatus code/POSTnamedescriptionvaluedescriptionpathpath of your filewhateverStatus code does not change anythingRemovingpathmethodparameterstatus code/DELETEnamedescriptionvaluedescriptionpathpath of your filewhateverStatus code does not change anythingAboutRequirementsYoutube Music Uploader works with Python 3 or above.Submitting bugs and feature requestsBugs and feature request are tracked on GitHubAuthorJay MOULIN See also the list of contributors which participated in this program.LicenseYoutube Music Uploader is licensed under the MIT License