youtube: Use https
gdata seems to do requests in plain HTTP, though
This commit is contained in:
parent
c30057d97f
commit
0c1ac040e3
2 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ class YoutubeBrowser(BaseBrowser):
|
|||
return logged
|
||||
|
||||
def login(self):
|
||||
self.location('https://accounts.google.com/ServiceLogin?uilel=3&service=youtube&passive=true&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252F&hl=en_US<mpl=sso')
|
||||
self.location('https://accounts.google.com/ServiceLogin?uilel=3&service=youtube&passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252F&hl=en_US<mpl=sso')
|
||||
self.page.login(self.username, self.password)
|
||||
|
||||
def get_video_url(self, player_url):
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ __all__ = ['YoutubeVideo']
|
|||
class YoutubeVideo(BaseVideo):
|
||||
@classmethod
|
||||
def id2url(cls, _id):
|
||||
return 'http://www.youtube.com/watch?v=%s' % _id
|
||||
return 'https://www.youtube.com/watch?v=%s' % _id
|
||||
|
||||
def _get_shorturl(self):
|
||||
return 'http://youtu.be/%s' % self.id
|
||||
return 'https://youtu.be/%s' % self.id
|
||||
|
||||
shorturl = property(_get_shorturl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue