Skip to content

Commit

Permalink
original
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijinwuu committed Dec 9, 2023
1 parent fb8f173 commit 668503b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yt_dlp/extractor/cnbc.py
Expand Up @@ -78,10 +78,7 @@ def _real_extract(self, url):
raise ValueError("JSON data not found")
metadata = json.loads(matched.group(1))
url = metadata["page"]["page"]["layout"][1]["columns"][0]["modules"][0]["data"]["encodings"][0]["url"]
upload_date = metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['uploadDate']
video_status = metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['videoStatus']
if metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['authorFormattedFull'] != 'NA':
author = metadata['page']['page']['layout'][1]['columns'][0]['modules'][0]['data']['authorFormattedFull']



import pdb
Expand Down

0 comments on commit 668503b

Please sign in to comment.