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 ()
|
response = conn.getresponse ()
|
||||||
conn.close ()
|
conn.close ()
|
||||||
except:
|
except:
|
||||||
print "failed to make connection"
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if response.status >= 300 and response.status < 400:
|
if response.status >= 300 and response.status < 400:
|
||||||
|
@ -29,8 +28,6 @@ def getVideoKey(youtubeId):
|
||||||
match = re.match(".*[?&]t=([^&]+)", location)
|
match = re.match(".*[?&]t=([^&]+)", location)
|
||||||
if match:
|
if match:
|
||||||
return match.groups()[0]
|
return match.groups()[0]
|
||||||
print response.status
|
|
||||||
print "no match"
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def getVideoUrl(youtubeId, format='mp4'):
|
def getVideoUrl(youtubeId, format='mp4'):
|
||||||
|
|
Loading…
Reference in a new issue