youtube: Use https

gdata seems to do requests in plain HTTP, though
This commit is contained in:
Laurent Bachelier 2013-03-30 14:13:21 +01:00
commit 0c1ac040e3
2 changed files with 3 additions and 3 deletions

View file

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