diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-02-02 12:03:36 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-02-02 12:03:36 +0100 |
commit | d55433bbfd9b7237bd7a52f2dc1ca7bd991a1367 (patch) | |
tree | a02672df52177c76741d4c63cb58648a69c3c3fd /youtube_dl/extractor/newgrounds.py | |
parent | f0ce2bc1c5880d9a92dda2dc543d21c4a8566a2f (diff) |
Remove unused imports and simplify
Diffstat (limited to 'youtube_dl/extractor/newgrounds.py')
-rw-r--r-- | youtube_dl/extractor/newgrounds.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/extractor/newgrounds.py b/youtube_dl/extractor/newgrounds.py index 5cb83ba14..2e72e8915 100644 --- a/youtube_dl/extractor/newgrounds.py +++ b/youtube_dl/extractor/newgrounds.py @@ -4,18 +4,18 @@ import json import re from .common import InfoExtractor -from ..utils import determine_ext class NewgroundsIE(InfoExtractor): - _VALID_URL = r'(?:https?://)?(?:www\.)?newgrounds\.com/audio/listen/(?P<id>\d+)' + _VALID_URL = r'https?://(?:www\.)?newgrounds\.com/audio/listen/(?P<id>[0-9]+)' _TEST = { 'url': 'http://www.newgrounds.com/audio/listen/549479', - 'file': '549479.mp3', 'md5': 'fe6033d297591288fa1c1f780386f07a', 'info_dict': { - "title": "B7 - BusMode", - "uploader": "Burn7", + 'id': '549479', + 'ext': 'mp3', + 'title': 'B7 - BusMode', + 'uploader': 'Burn7', } } |