Permalink
Browse files

fix encoding error of online video

  • Loading branch information...
1 parent 710c61f commit 7767d5eea0b8e3ebfd18a38f8f262688ebab93da @kikyous committed Apr 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 xfdown.py
View
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from __future__ import division
import hashlib
+import subprocess
try:
import urllib as parse
import urllib2 as request
@@ -295,9 +296,7 @@ def __online(self):
self.__gethttp([num+1])
print [self.filename[num]]
print("正在缓冲,马上开始播放")
- #sys.exit()
filename=_(self.filename[num])
- import subprocess
arg=['wget', '-c', '-O', filename, '--header', 'Cookie:FTN5K=%s'%self.filecom[num], self.filehttp[num]]
subprocess.Popen(arg,cwd=_(self.__downpath))

0 comments on commit 7767d5e

Please sign in to comment.