Refactor code to use url_result
This commit is contained in:
parent
8437f5089f
commit
d226c560a6
9 changed files with 13 additions and 43 deletions
|
@ -1,6 +1,7 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from .common import InfoExtractor
|
||||
from .youtube import YoutubeIE
|
||||
|
||||
|
||||
class FreespeechIE(InfoExtractor):
|
||||
|
@ -27,8 +28,4 @@ class FreespeechIE(InfoExtractor):
|
|||
r'data-video-url="([^"]+)"',
|
||||
webpage, 'youtube url')
|
||||
|
||||
return {
|
||||
'_type': 'url',
|
||||
'url': youtube_url,
|
||||
'ie_key': 'Youtube',
|
||||
}
|
||||
return self.url_result(youtube_url, YoutubeIE.ie_key())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue