Lines 204-210
Link Here
|
204 |
def resolve_t_param (self, youtube_id): |
204 |
def resolve_t_param (self, youtube_id): |
205 |
"""We have to get the t parameter from the actual video page, since Google changed how their URLs work""" |
205 |
"""We have to get the t parameter from the actual video page, since Google changed how their URLs work""" |
206 |
stream = urllib.urlopen ("http://youtube.com/watch?v=" + urllib.quote (youtube_id)) |
206 |
stream = urllib.urlopen ("http://youtube.com/watch?v=" + urllib.quote (youtube_id)) |
207 |
regexp1 = re.compile ("swfArgs.*\"t\": \"([^\"]+)\"") |
207 |
regexp1 = re.compile ("'SWF_ARGS'.*\"t\": \"([^\"]+)\"") |
208 |
regexp2 = re.compile ("</head>") |
208 |
regexp2 = re.compile ("</head>") |
209 |
contents = stream.read () |
209 |
contents = stream.read () |