@ -3,7 +3,6 @@ from __future__ import unicode_literals
import re
import re
from . common import InfoExtractor
from . common import InfoExtractor
from . fivemin import FiveMinIE
class AolIE ( InfoExtractor ) :
class AolIE ( InfoExtractor ) :
@ -42,9 +41,10 @@ class AolIE(InfoExtractor):
def _real_extract ( self , url ) :
def _real_extract ( self , url ) :
mobj = re . match ( self . _VALID_URL , url )
mobj = re . match ( self . _VALID_URL , url )
video_id = mobj . group ( ' id ' )
video_id = mobj . group ( ' id ' )
playlist_id = mobj . group ( ' playlist_id ' )
playlist_id = mobj . group ( ' playlist_id ' )
if playlist_id and not self . _downloader . params . get ( ' noplaylist ' ) :
if not playlist_id or self . _downloader . params . get ( ' noplaylist ' ) :
return self . url_result ( ' 5min: %s ' % video_id )
self . to_screen ( ' Downloading playlist %s - add --no-playlist to just download video %s ' % ( playlist_id , video_id ) )
self . to_screen ( ' Downloading playlist %s - add --no-playlist to just download video %s ' % ( playlist_id , video_id ) )
webpage = self . _download_webpage ( url , playlist_id )
webpage = self . _download_webpage ( url , playlist_id )
@ -69,4 +69,3 @@ class AolIE(InfoExtractor):
' entries ' : entries ,
' entries ' : entries ,
}
}
return FiveMinIE . _build_result ( video_id )