From 430c2757ea592f19db22175e4f8f7c203ba55a40 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 23 Jan 2021 07:30:08 +0530 Subject: [PATCH] [cbs] Make failure to extract title non-fatal :skip ci --- youtube_dlc/extractor/cbs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/extractor/cbs.py b/youtube_dlc/extractor/cbs.py index 4a19a73d2..d00053685 100644 --- a/youtube_dlc/extractor/cbs.py +++ b/youtube_dlc/extractor/cbs.py @@ -59,7 +59,7 @@ class CBSIE(CBSBaseIE): 'http://can.cbs.com/thunder/player/videoPlayerService.php', content_id, query={'partner': site, 'contentId': content_id}) video_data = xpath_element(items_data, './/item') - title = xpath_text(video_data, 'videoTitle', 'title', True) + title = xpath_text(video_data, 'videoTitle', 'title') or xpath_text(video_data, 'videotitle', 'title') tp_path = 'dJ5BDC/media/guid/%d/%s' % (mpx_acc, content_id) tp_release_url = 'http://link.theplatform.com/s/' + tp_path