Python ~ Youtube-Upload : FileNotFoundError -
here code (note: variables present in code defined in original code) :
owd = os.getcwd() os.chdir(movie_name) print(os.getcwd()) x = song2file(song)+'.mp4' if os.path.isfile(x): print('yes') call(['youtube-upload', '--title=' +song + " ~ ["+movie_name +"]", '--description="hi there!\ndon\'t forget enjoy :)"', '--category="music"', '--default-language="en"', '--playlist \"'+xx+'\"', x], shell=false)
it prints yes file exists there. when run youtube-upload call returns
filenotfounderror: [winerror 2] system cannot find file specified
this code on cmd works : youtube-upload --title=yonob --description="hi" --category="music" --default-language="en" --playlist="go" the_chain.mp4
code not.
from subprocess import call call(['youtube-upload --title=yonob --description="hi" --category="music" --default-language="en" --playlist="go" the_chain.mp4'],shell=false)
please help!
Comments
Post a Comment