From cd0c676cbf3406f1f40c9ad843c9eab350d31053 Mon Sep 17 00:00:00 2001 From: Apkawa Date: Thu, 17 Feb 2011 22:00:37 +0300 Subject: [PATCH] minor fixed rghost --- Apkawa/rghost-0.02.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Apkawa/rghost-0.02.py b/Apkawa/rghost-0.02.py index 84b434d..e79f8ab 100755 --- a/Apkawa/rghost-0.02.py +++ b/Apkawa/rghost-0.02.py @@ -18,7 +18,7 @@ class Rghost: self.curl = 'curl -b "%s" \ -F authenticity_token=%s \ -F file=@"%s" \ - -F commit="Отправить" http://phonon.rghost.ru/files' + -F commit="Отправить" http://muon.rghost.ru/files' options, files = self.optparse(argv) #print options, files self.files = files @@ -89,10 +89,12 @@ class Rghost: #print filepath #print os.popen(self.curl%( self.s_cookie, self.s_token, filepath)).read() curl_cmd = self.curl%( self.s_cookie, self.s_token, filepath) - #print curl_cmd + ##print curl_cmd + result = os.popen( curl_cmd ).read() + #print result self.tmp.write('%s%s %s %s\n'%\ - (URL,findall('"http://rghost.ru/(.*?)"', os.popen( curl_cmd ).read())[0], + (URL,findall('"http://rghost.ru/(.*?)"', result)[0], filename, size)) -- 2.11.4.GIT