Fix permanent header modification after uploads (closes #79)
This commit is contained in:
parent
ae8213eda9
commit
2d3219befd
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ class UploadsMixin:
|
|||
"The provided file type is not supported by YouTube Music. Supported file types are "
|
||||
+ ', '.join(supported_filetypes))
|
||||
|
||||
headers = self.headers
|
||||
headers = self.headers.copy()
|
||||
upload_url = "https://upload.youtube.com/upload/usermusic/http?authuser=0"
|
||||
filesize = os.path.getsize(filepath)
|
||||
body = ("filename=" + ntpath.basename(filepath)).encode('utf-8')
|
||||
|
|
|
|||
Loading…
Reference in a new issue