diff --git a/youtube_dl/extractor/freesound.py b/youtube_dl/extractor/freesound.py index 5ff62af2a..08960823b 100644 --- a/youtube_dl/extractor/freesound.py +++ b/youtube_dl/extractor/freesound.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals import re from .common import InfoExtractor +from ..utils import get_element_by_id class FreesoundIE(InfoExtractor): @@ -20,20 +21,18 @@ class FreesoundIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - music_id = mobj.group('id') + music_id = self._match_id(url) webpage = self._download_webpage(url, music_id) - title = self._html_search_regex( - r'