1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 07:49:57 +08:00

Update regex to support legacy URLs

This commit is contained in:
Mubashir Saad 2019-10-14 16:05:48 -05:00
parent 93212bd052
commit 754e5eec53

View File

@ -6,16 +6,16 @@ from ..compat import compat_urllib_parse_unquote
class EHowIE(InfoExtractor):
IE_NAME = 'eHow'
_VALID_URL = r'https?://(?:www\.)?ehow\.com/(?P<id>[0-9]+)'
_VALID_URL = r'https?://(?:www\.)?ehow\.com/(([^/_?]*_)|())(?P<id>[0-9]+)'
_TEST = {
'url': 'https://www.ehow.com/13718302/diy-colorful-abstract-art-coasters',
'url': 'http://www.ehow.com/video_12245069_hardwood-flooring-basics.html',
'md5': '9809b4e3f115ae2088440bcb4efbf371',
'info_dict': {
'id': '13718302',
'id': '12245069',
'ext': 'flv',
'title': 'DIY Colorful Abstract Art Coasters',
'description': 'Not only are these colorful DIY polymer clay coasters super fun to make and practical to have around the house, they\'ll definitely exercise your artistic skills...',
'uploader': 'Maya Marin',
'title': 'Hardwood Flooring Basics',
'description': 'Hardwood flooring may be time consuming, but its ultimately a pretty straightforward concept. Learn about hardwood flooring basics with help from a hardware flooring business owner in this free video...',
'uploader': 'Erick Nathan',
}
}