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

[uol.com.br] "ValueError: negative count" error for *some* videos #26453

Open
ixxbxxx opened this issue Aug 27, 2020 · 0 comments
Open

[uol.com.br] "ValueError: negative count" error for *some* videos #26453

ixxbxxx opened this issue Aug 27, 2020 · 0 comments

Comments

@ixxbxxx
Copy link

@ixxbxxx ixxbxxx commented Aug 27, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.07.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

youtube-dl --verbose -f hls-720p -o "%(upload_date)s-%(title)s-%(id)s.%(ext)s" https://tvuol.uol.com.br/video/gatas-provam-que-sao-boas-de-bola-em-futebol-no-sabao-04024E1B336CD4A16326
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-f', 'hls-720p', '-o', '%(upload_date)s-%(title)s-%(id)s.%(ext)s', 'https://tvuol.uol.com.br/video/gatas-provam-que-sao-boas-de-bola-em-futebol-no-sabao-04024E1B336CD4A16326']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.7.0b1 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg git-2020-06-04-7f81785
[debug] Proxy map: {}
[uol.com.br] gatas-provam-que-sao-boas-de-bola-em-futebol-no-sabao-04024E1B336CD4A16326: Downloading JSON metadata
[uol.com.br] 16456369: Downloading JSON metadata
[uol.com.br] 16456369: Downloading m3u8 information
[debug] Invoking downloader on 'https://video22.mais.uol.com.br/16456369-10-80.m3u8?ver=2&r=http%3A%2F%2Fmais.uol.com.br&token=wZ8m5TvYNF5HeN_lqE_eihWRc4hu-wC4&sign=MEUCIQCOmHF0Phlb77Tq4KCbk4dQFwN-hZyCDBS1Pw2Ect1ligIgStfmB6KNfDKmsaAA9M_fRbdMDFUsz5ZSfnSi8anTYAM'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 734
[download] Destination: 20180609-Gatas provam que são boas de bola em futebol no sabão-16456369.mp4
[download]  19.6% of ~910.73MiB at 222.84KiB/s ETA 57:11   Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\Scripts\youtube-dl.exe\__main__.py", line 7, in <module>
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\__init__.py", line 474, in main
    _real_main(argv)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 2019, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 808, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 863, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 1644, in process_video_result
    self.process_info(new_info)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 1926, in process_info
    success = dl(filename, info_dict)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 1865, in dl
    return fd.download(name, info)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\downloader\common.py", line 366, in download
    return self.real_download(filename, info_dict)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\downloader\hls.py", line 148, in real_download
    ctx, frag_url, info_dict, headers)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\downloader\fragment.py", line 102, in _download_fragment
    'http_headers': headers or info_dict.get('http_headers'),
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\downloader\common.py", line 366, in download
    return self.real_download(filename, info_dict)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\downloader\http.py", line 342, in real_download
    return download()
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\youtube_dl\downloader\http.py", line 230, in download
    data_block = ctx.data.read(block_size if data_len is None else min(block_size, data_len - byte_counter))
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\http\client.py", line 446, in read
    b = bytearray(amt)
ValueError: negative count

Description

For the uol.com.br extractor, a "ValueError:negative count" error occurs for some videos at exactly the same spot/completion %. ytdl spits out this error and exits leaving the download incomplete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.