aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorMartin Trigaux <me@mart-e.be>2016-03-29 14:18:44 +0200
committerSergey M․ <dstftw@gmail.com>2016-04-01 22:58:16 +0600
commit83cedc1cf224206adf513f5bdd5f5ce915d67933 (patch)
tree75fe0cc96ab39d7ce59fed693ca5f84b0b7a7002 /youtube_dl
parent244cd04237fe4a1e4d92421711f41de3c2566d5c (diff)
screencast.com: support missing www
The "www." part of the URL is not mandatory
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/screencast.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py
index dfd897ba3..d5111c629 100644
--- a/youtube_dl/extractor/screencast.py
+++ b/youtube_dl/extractor/screencast.py
@@ -12,7 +12,7 @@ from ..utils import (
class ScreencastIE(InfoExtractor):
- _VALID_URL = r'https?://www\.screencast\.com/t/(?P<id>[a-zA-Z0-9]+)'
+ _VALID_URL = r'https?://(?:www\.)?screencast\.com/t/(?P<id>[a-zA-Z0-9]+)'
_TESTS = [{
'url': 'http://www.screencast.com/t/3ZEjQXlT',
'md5': '917df1c13798a3e96211dd1561fded83',
@@ -34,7 +34,7 @@ class ScreencastIE(InfoExtractor):
'thumbnail': 're:^https?://.*\.(?:gif|jpg)$',
}
}, {
- 'url': 'http://www.screencast.com/t/aAB3iowa',
+ 'url': 'http://screencast.com/t/aAB3iowa',
'md5': 'dedb2734ed00c9755761ccaee88527cd',
'info_dict': {
'id': 'aAB3iowa',