Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBS News does not download #23359

Closed
5 tasks done
cdn-content opened this issue Dec 9, 2019 · 6 comments
Closed
5 tasks done

CBS News does not download #23359

cdn-content opened this issue Dec 9, 2019 · 6 comments

Comments

@cdn-content
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.11.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

PASTE VERBOSE LOG HERE

C:\>youtube-dl -v "https://www.cbsnews.com/news/harvard-geneticist-george-church-goal-to-protect-humans-from-viruses-genetic-diseases-and-aging-60-minutes-2019-12-08/" --ffmpeg-location "C:\Program Files (x86)\youtube-dl\ffmpeg\bin"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.cbsnews.com/news/harvard-geneticist-george-church-goal-to-protect-humans-from-viruses-genetic-diseases-and-aging-60-minutes-2019-12-08/', '--ffmpeg-location', 'C:\\Program Files (x86)\\youtube-dl\\ffmpeg\\bin']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.11.28
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-86175-g64ea4d1, ffprobe N-86175-g64ea4d1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[cbsnews] harvard-geneticist-george-church-goal-to-protect-humans-from-viruses-genetic-diseases-and-aging-60-minutes-2019-12-08: Downloading webpage
[download] Downloading playlist: A Harvard geneticist's goal: to protect humans from viruses, genetic diseases, and aging
[cbsnews] playlist A Harvard geneticist's goal: to protect humans from viruses, genetic diseases, and aging: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\__init__.py", line 474, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\__init__.py", line 464, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 2018, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 807, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 1007, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 869, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\extractor\cbsnews.py", line 29, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\extractor\common.py", line 899, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 312, in loads
TypeError: the JSON object must be str, not 'bytes'

Description

Can't download videos from CBS News/60 Minutes. I've done so in the past, and it seems like youtube-dl recognizes a video but isn't able to extract it. Is this an issue with the site or with the program itself?

@michaelcrossland1979
Copy link

That happens from time to time on the cbsnew.com site they change stuff there all the time.
Ifg it's not working there it's almost 99% working on the cbs.com site and no you don't have to have the all access stuff to do 60 minutes or face or the nightly news.

@anonvoy
Copy link

anonvoy commented Apr 11, 2020

cbs.com won't work outside the US (and possibly Canada and Australia), not even the news shows ("This video isn't available in your region. ") cbsnews.com however works.

@merval
Copy link

merval commented Aug 29, 2020

@cdn-content have you tried updating to 2020.07.28? I can download cbsnews videos with it.

@lkintact
Copy link

lkintact commented Apr 14, 2021

Since this issue isn't closed, I didn't open a new one. Having the same problem as op:

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.04.07
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.cbsnews.com/news/last-pandemic-science-military-60-minutes-2021-04-11/']
[debug] Encodings: locale cp1251, fs mbcs, out cp1251, pref cp1251
[debug] youtube-dl version 2021.04.07
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
[debug] Proxy map: {}
[cbsnews] last-pandemic-science-military-60-minutes-2021-04-11: Downloading webpage
[download] Downloading playlist: Military programs aiming to end pandemics forever
[cbsnews] playlist Military programs aiming to end pandemics forever: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\__init__.py", line 475, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\__init__.py", line 465, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 2060, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 799, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 838, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 924, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 1058, in __process_playlist
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 1068, in __process_iterable_entry
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 879, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 799, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\YoutubeDL.py", line 827, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\extractor\cbsnews.py", line 29, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5qwpsrl8\build\youtube_dl\extractor\common.py", line 906, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 312, in loads
TypeError: the JSON object must be str, not 'bytes'

@anonvoy
Copy link

anonvoy commented Apr 14, 2021

Since this issue isn't closed, I didn't open a new one. Having the same problem as op:

I was able to download that "60 minutes" video from your URL, using youtube-dl version 2021.04.07 with Python 3.6.12 on Linux. Just a hunch: Both you and op are using Python 3.4.4. Have you tried updating Python? 3.4.4 is over 5 years old and does no longer receive any bugfixes or even security updates. I'm not saying that is the cause of your problem (I simply don't know), but it's something I would try.

@lkintact
Copy link

lkintact commented Apr 15, 2021

Thank you, @anonvoy, you were right. I didn't even notice that the Python version was obsolete, because I use the Windows binary at https://github.com/ytdl-org/youtube-dl/releases/, regularly updating it with youtube-dl -U, and somehow I assumed it always comes with a Python version that works with it best (perhaps it does, but apparently not in this particular case).
Installing youtube-dl with Python 3.8.7's pip (py -3 -m pip install --upgrade youtube_dl) solved the issue.

@dstftw dstftw closed this as completed in 9f6c03a Apr 16, 2021
github-actions bot added a commit to hellopony/youtube-dl that referenced this issue Apr 17, 2021
* https://github.com/ytdl-org/youtube-dl:
  [cbsnews] Fix extraction for python <3.6 (closes ytdl-org#23359)
  release 2021.04.17
  [ChangeLog] Actualize [ci skip]
  [utils] PEP 8
  [lbry] Add support for HLS videos (closes ytdl-org#27877, closes ytdl-org#28768)
  [utils] Add support for support for experimental HTTP response status code 308 Permanent Redirect (refs ytdl-org#27877, refs ytdl-org#28768)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants