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
|
|
@ -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