Example #1
0
def uploadsecond():
	global global_videoTitle
	global_videoTitle = str(videoTitleLineEdit.text())
	f3=open("detailsyoutube.txt","r")
	username=f3.readline()
	passwrd=f3.readline()
	title=global_videoTitle
	filepath=sys.argv[1]
	#string3 = "sandeep080"#string3.strip()
	#string4 = "helloWorld"#string4.strip()
	#string5= sys.argv[2]#"debug5"#string5.strip()
	#stringf= stringf.strip()
	
	#print string3 + "<< uname"
	#print string4 + "<< upasswd"
	#print string5 + "<< title"
	#print stringf + "<< filename"
	#print "calling upload in else"
	
	#global global_uname
	username= username.strip()
	passwrd= passwrd.strip()
	#global global_passwd
	
	#global global_albumTitle
	#string5 = global_videoTitle
	
	print (filepath)
	print (title)
	print (username)
	print (passwrd)
	
	youtube.post_to_youtube(filepath,title,username,passwrd)
        print "done!"
Example #2
0
def uploadfirst():
 print "uploading!..."  
 
 global global_uname
 global global_videoTitle
 global global_passwd
 
 global_uname = str(unameLineEdit.text())
 global_passwd=str(passwdLineEdit.text())
 global_videoTitle=str(videoTitleLineEdit.text())

 fouttest = open("login.log","w")
 fouttest.write("hello1")
       
 s1="notfirsttime"
 f1=open("/home/gowtham/countyoutube.txt","w")

 string1=global_uname
 string2=global_passwd
 string3=global_videoTitle
 string4=sys.argv[1]

 f1.write(s1)
 f1.close()
		
 fouttest.write("hello4")
 fout=open("log.txt","w")
 fout.write(string4)
 fout.close()
 fouttest.write("hello*")
 print "calling upload! in if"
 
 addyoutube.details(string1,string2)
 print string4
 print string3
 print string1
 print string2
 youtube.post_to_youtube(string4,string3,string1,string2)
 print "done!"

 fouttest.write("hello5")
Example #3
0
def uploadsecond():
	global global_videoTitle
	global_videoTitle = str(videoTitleLineEdit.text())
	f3=open("detailsyoutube.txt","r")
	username=f3.readline()
	passwrd=f3.readline()
	title=global_videoTitle
	filepath=sys.argv[1]

	#global global_uname
	username= username.strip()
	passwrd= passwrd.strip()
	#global global_passwd
	
	#global global_albumTitle
	print (filepath)
	print (title)
	print (username)
	print (passwrd)
	
	youtube.post_to_youtube(filepath,title,username,passwrd)
        print "done!"
Example #4
0
def uploadfirst():
 print "uploading!..."  
 #fout=open("countyoutube.txt","r")

 #s1=fout.readline()
 #print s1
 global global_uname
 global global_videoTitle
 global global_passwd
 
 global_uname = str(unameLineEdit.text())
 global_passwd=str(passwdLineEdit.text())
 global_videoTitle=str(videoTitleLineEdit.text())

 #s2="firsttime"
 #if s1==s2:
 fouttest = open("login.log","w")
 fouttest.write("hello1")
       
 s1="notfirsttime"
 f1=open("/home/subrahmanya/countyoutube.txt","w")
#f2=open("/home/subrahmanya/detailsyoutube.txt","r")
 #s1="notfirsttime"
 string1=global_uname
 string2=global_passwd
 string3=global_videoTitle
 string4=sys.argv[1]
	
	#string1 = "sandeep080"#string1.strip()
	#string2 = "helloWorld"#string2.strip()
	#string3 = sys.argv[2]#:"debug2"#string3.strip()
	#string4 = string4.strip()
	
	#print string1 + "<< uname if"
	#print string2 + "<< upasswd if"
	#print string3 + "<< title if"
	#print string4 + "<< filename if"
	#f2.close()
 f1.write(s1)
	#f2.close()
 f1.close()
	
	
 fouttest.write("hello4")
 fout=open("log.txt","w")
 fout.write(string4)
 fout.close()
 fouttest.write("hello*")
 print "calling upload! in if"

	#global global_uname
	#string1 = global_uname
	#global global_passwd
	#string2 = global_passwd
	#global global_albumTitle
	#string3 = global_albumTitle
 addyoutube.details(string1,string2)
 print string4
 print string3
 print string1
 print string2
 youtube.post_to_youtube(string4,string3,string1,string2)
 print "done!"

 fouttest.write("hello5")