diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-23 07:30:08 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-23 08:51:57 +0530 |
commit | 430c2757ea592f19db22175e4f8f7c203ba55a40 (patch) | |
tree | f9aaf5615c419eb7cf27ba554ff1d0387370b1cd | |
parent | ffcb819171d6f3577cbe6f81ba69377398d57e96 (diff) | |
download | hypervideo-pre-430c2757ea592f19db22175e4f8f7c203ba55a40.tar.lz hypervideo-pre-430c2757ea592f19db22175e4f8f7c203ba55a40.tar.xz hypervideo-pre-430c2757ea592f19db22175e4f8f7c203ba55a40.zip |
[cbs] Make failure to extract title non-fatal
:skip ci
-rw-r--r-- | youtube_dlc/extractor/cbs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |