Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

YouTube: Add support for https:// links

  • Loading branch information...
commit 6733a23f0dc8eb7fe7906ecdb747ba7d7f518460 1 parent d1d78ed
@thp thp authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gpodder/youtube.py
View
6 src/gpodder/youtube.py
@@ -141,15 +141,15 @@ def find_urls(page):
return url
def get_youtube_id(url):
- r = re.compile('http://(?:[a-z]+\.)?youtube\.com/v/(.*)\.swf', re.IGNORECASE).match(url)
+ r = re.compile('http[s]?://(?:[a-z]+\.)?youtube\.com/v/(.*)\.swf', re.IGNORECASE).match(url)
if r is not None:
return r.group(1)
- r = re.compile('http://(?:[a-z]+\.)?youtube\.com/watch\?v=([^&]*)', re.IGNORECASE).match(url)
+ r = re.compile('http[s]?://(?:[a-z]+\.)?youtube\.com/watch\?v=([^&]*)', re.IGNORECASE).match(url)
if r is not None:
return r.group(1)
- r = re.compile('http://(?:[a-z]+\.)?youtube\.com/v/(.*)[?]', re.IGNORECASE).match(url)
+ r = re.compile('http[s]?://(?:[a-z]+\.)?youtube\.com/v/(.*)[?]', re.IGNORECASE).match(url)
if r is not None:
return r.group(1)
Please sign in to comment.
Something went wrong with that request. Please try again.