2017-10-11 16:51:57 -04:00
from . mtv import MTVServicesInfoExtractor
2014-06-07 10:39:08 -04:00
2024-06-11 19:09:58 -04:00
# TODO: Remove - Reason: Outdated Site
2020-10-09 01:50:22 -04:00
2014-05-16 18:15:02 -04:00
2017-10-11 16:51:57 -04:00
class VH1IE ( MTVServicesInfoExtractor ) :
2014-06-07 10:39:08 -04:00
IE_NAME = ' vh1.com '
2017-10-11 16:51:57 -04:00
_FEED_URL = ' http://www.vh1.com/feeds/mrss/ '
2014-06-07 10:39:08 -04:00
_TESTS = [ {
2021-08-29 17:50:58 -04:00
' url ' : ' https://www.vh1.com/episodes/0aqivv/nick-cannon-presents-wild-n-out-foushee-season-16-ep-12 ' ,
2014-06-07 10:39:08 -04:00
' info_dict ' : {
2021-08-29 17:50:58 -04:00
' title ' : ' Fousheé ' ,
' description ' : ' Fousheé joins Team Evolutions fight against Nick and Team Revolution in Baby Daddy, Baby Mama; Kick Em Out the Classroom; Backseat of My Ride and Wildstyle; and Fousheé performs. ' ,
2014-06-07 10:40:16 -04:00
} ,
2017-10-11 16:51:57 -04:00
' playlist_mincount ' : 4 ,
2021-08-29 17:50:58 -04:00
' skip ' : ' 404 Not found ' ,
2014-06-07 10:39:08 -04:00
} , {
2017-10-11 16:51:57 -04:00
# Clip
2021-08-29 17:50:58 -04:00
' url ' : ' https://www.vh1.com/video-clips/e0sja0/nick-cannon-presents-wild-n-out-foushee-clap-for-him ' ,
2014-06-07 10:39:08 -04:00
' info_dict ' : {
2021-08-29 17:50:58 -04:00
' id ' : ' a07563f7-a37b-4e7f-af68-85855c2c7cc3 ' ,
2014-06-07 10:39:08 -04:00
' ext ' : ' mp4 ' ,
2021-08-29 17:50:58 -04:00
' title ' : ' Fousheé - " clap for him " ' ,
' description ' : ' Singer Fousheé hits the Wild N Out: In the Dark stage with a performance of the tongue-in-cheek track " clap for him " from her 2021 album " time machine. " ' ,
' upload_date ' : ' 20210826 ' ,
2014-06-07 10:40:16 -04:00
} ,
2017-10-11 16:51:57 -04:00
' params ' : {
# m3u8 download
' skip_download ' : True ,
2014-06-07 10:40:16 -04:00
} ,
2014-06-07 10:39:08 -04:00
} ]
2017-10-11 16:51:57 -04:00
_VALID_URL = r ' https?://(?:www \ .)?vh1 \ .com/(?:video-clips|episodes)/(?P<id>[^/?#.]+) '