@ -1,3 +1,4 @@
# coding: utf-8
from __future__ import unicode_literals
from . theplatform import ThePlatformFeedIE
@ -77,21 +78,21 @@ class CBSIE(CBSBaseIE):
( ? :
cbs : |
https ? : / / ( ? : www \. ) ? ( ? :
cbs \. com / ( ? : shows / [^ / ] + / video | movies / [ ^ / ] + ) / |
cbs \. com / ( ? : shows |movies ) /(? : video | [^ / ] + / video | [ ^ / ] + ) / |
colbertlateshow \. com / ( ? : video | podcasts ) / )
) ( ? P < id > [ \w - ] + ) '''
# All tests are blocked outside US
_TESTS = [ {
' url ' : ' http ://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks /' ,
' url ' : ' http s://www.cbs.com/shows/video/xrUyNLtl9wd8D_RWWAg9NU2F_V6QpB3R /' ,
' info_dict ' : {
' id ' : ' _u7W953k6la293J7EPTd9oHkSPs6Xn6_ ' ,
' id ' : ' xrUyNLtl9wd8D_RWWAg9NU2F_V6QpB3R ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Connect Chat feat. Garth Brooks ' ,
' description ' : ' Connect with country music singer Garth Brooks, as he chats with fans on Wednesday November 27, 2013. Be sure to tune in to Garth Brooks: Live from Las Vegas, Friday November 29, at 9/8c on CBS! ' ,
' duration ' : 1495 ,
' timestamp ' : 1 385585425 ,
' upload_date ' : ' 20 131127 ' ,
' title ' : ' Tough As Nails - Dreams Never Die ' ,
' description ' : ' md5:a3535a62531cdd52b0364248a2c1ae33 ' ,
' duration ' : 2588 ,
' timestamp ' : 1 639015200 ,
' upload_date ' : ' 20 211209 ' ,
' uploader ' : ' CBSI-NEW ' ,
} ,
' params ' : {
@ -100,14 +101,14 @@ class CBSIE(CBSBaseIE):
} ,
' _skip ' : ' Blocked outside the US ' ,
} , {
' url ' : ' https://www.cbs.com/shows/ the-late-show-with-stephen-colbert/video/60icOhMb9NcjbcWnF_gub9XXHdeBcNk2/the-late-show-6-23-21-christine-baranski-joy-oladokun- ' ,
' url ' : ' https://www.cbs.com/shows/ video/sZH1MGgomIosZgxGJ1l263MFq16oMtW1/ ' ,
' info_dict ' : {
' id ' : ' 60icOhMb9NcjbcWnF_gub9XXHdeBcNk2 ' ,
' title ' : ' The Late Show - 6/23/21 (Christine Baranski, Joy Oladokun )' ,
' timestamp ' : 16 2 450 71 40,
' description ' : ' md5: e01af24e95c74d55e8775aef86117b95 ' ,
' id ' : ' sZH1MGgomIosZgxGJ1l263MFq16oMtW1 ' ,
' title ' : ' The Late Show - 3/16/22 (Michael Buble, Rose Matafeo )' ,
' timestamp ' : 16 4748810 0,
' description ' : ' md5: d0e6ec23c544b7fa8e39a8e6844d2439 ' ,
' uploader ' : ' CBSI-NEW ' ,
' upload_date ' : ' 202 10624 ' ,
' upload_date ' : ' 202 20317 ' ,
} ,
' params ' : {
' ignore_no_formats_error ' : True ,
@ -121,6 +122,10 @@ class CBSIE(CBSBaseIE):
} , {
' url ' : ' http://www.colbertlateshow.com/podcasts/dYSwjqPs_X1tvbV_P2FcPWRa_qT6akTC/in-the-bad-room-with-stephen/ ' ,
' only_matching ' : True ,
} , {
# old format
' url ' : ' http://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/ ' ,
' only_matching ' : True ,
} ]
def _extract_video_info ( self , content_id , site = ' cbs ' , mpx_acc = 2198311517 ) :