remove debug
This commit is contained in:
parent
bf1967e6ea
commit
3cc3bb9f42
1 changed files with 0 additions and 3 deletions
|
@ -21,7 +21,6 @@ def getVideoKey(youtubeId):
|
|||
response = conn.getresponse ()
|
||||
conn.close ()
|
||||
except:
|
||||
print "failed to make connection"
|
||||
return False
|
||||
|
||||
if response.status >= 300 and response.status < 400:
|
||||
|
@ -29,8 +28,6 @@ def getVideoKey(youtubeId):
|
|||
match = re.match(".*[?&]t=([^&]+)", location)
|
||||
if match:
|
||||
return match.groups()[0]
|
||||
print response.status
|
||||
print "no match"
|
||||
return False
|
||||
|
||||
def getVideoUrl(youtubeId, format='mp4'):
|
||||
|
|
Loading…
Reference in a new issue