Browse Source

screencast.com: support missing www

The "www." part of the URL is not mandatory
totalwebcasting
Martin Trigaux 9 years ago
committed by Sergey M․
parent
commit
83cedc1cf2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/screencast.py

+ 2
- 2
youtube_dl/extractor/screencast.py View File

@ -12,7 +12,7 @@ from ..utils import (
class ScreencastIE(InfoExtractor): 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 = [{ _TESTS = [{
'url': 'http://www.screencast.com/t/3ZEjQXlT', 'url': 'http://www.screencast.com/t/3ZEjQXlT',
'md5': '917df1c13798a3e96211dd1561fded83', 'md5': '917df1c13798a3e96211dd1561fded83',
@ -34,7 +34,7 @@ class ScreencastIE(InfoExtractor):
'thumbnail': 're:^https?://.*\.(?:gif|jpg)$', 'thumbnail': 're:^https?://.*\.(?:gif|jpg)$',
} }
}, { }, {
'url': 'http://www.screencast.com/t/aAB3iowa',
'url': 'http://screencast.com/t/aAB3iowa',
'md5': 'dedb2734ed00c9755761ccaee88527cd', 'md5': 'dedb2734ed00c9755761ccaee88527cd',
'info_dict': { 'info_dict': {
'id': 'aAB3iowa', 'id': 'aAB3iowa',


Loading…
Cancel
Save