Giter Site home page Giter Site logo

Comments (7)

boredzo avatar boredzo commented on June 28, 2024

Here's the verbose output with --sub-langs=-en,-eng (i.e., no subs):

[debug] Command-line config: ['-vU', '--downloader-args', 'ffmpeg:-http_persistent 0', '--downloader-args', 'ffmpeg:-loglevel warning -stats', '--embed-subs', '--format=hls-8628', '--add-metadata', '--embed-thumbnail', '--embed-chapters', '--sub-langs=-en,-eng', 'https://www.adultswim.com/videos/ghost-in-the-shell/reembody']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [ff0779267] (pip)
[debug] Python 3.9.2 (CPython aarch64 64bit) - Linux-6.1.21-v8+-aarch64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg 4.3.6-0, ffprobe 4.3.6-0, phantomjs broken
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2020.06.20, mutagen-1.47.0, requests-2.32.0, sqlite3-3.34.1, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp)
[AdultSwim] Extracting URL: https://www.adultswim.com/videos/ghost-in-the-shell/reembody
[AdultSwim] reembody: Downloading JSON metadata
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading JSON metadata
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading XML
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading m3u8 information
[AdultSwim] 1_QUa04dR56u-Hscc6qAkw: Downloading JSON metadata
[AdultSwim] 1_QUa04dR56u-Hscc6qAkw: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] 1_QUa04dR56u-Hscc6qAkw: Downloading 1 format(s): hls-8628
[info] There are no subtitles for the requested languages
Deleting existing file Ghost in the Shell - Reembody [1_QUa04dR56u-Hscc6qAkw].jpg
[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: Ghost in the Shell - Reembody [1_QUa04dR56u-Hscc6qAkw].jpg
[debug] Invoking hlsnative downloader on "http://amd.cdn.turner.com/adultswim/episodes/us_geo/gits2/2017/08/gits2_2ndgig_001_Digital_Reembody/hls/gits2_2ndgig_001_Digital_Reembody_stream_10.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 124
[download] Destination: Ghost in the Shell - Reembody [1_QUa04dR56u-Hscc6qAkw].mp4
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 1 (10/10)...
[download] fragment not found; Skipping fragment 1 ...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 2 (1/10)...
[download] Got error: HTTP Error 404: Not Found. Retrying fragment 2 (2/10)...
^C
ERROR: Interrupted by user

from yt-dlp.

bashonly avatar bashonly commented on June 28, 2024

can you try with --compat-opt prefer-legacy-http-handler added to your command

from yt-dlp.

boredzo avatar boredzo commented on June 28, 2024
[debug] Command-line config: ['--downloader-args', 'ffmpeg:-http_persistent 0', '--downloader-args', 'ffmpeg:-loglevel warning -stats', '--embed-subs', '--format=hls-8628', '--add-metadata', '--embed-thumbnail', '--embed-chapters', '-vU', '--compat-opt', 'prefer-legacy-http-handler', 'https://www.adultswim.com/videos/ghost-in-the-shell/reembody']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [ff0779267] (pip)
[debug] Compatibility options: prefer-legacy-http-handler
[debug] Python 3.9.2 (CPython aarch64 64bit) - Linux-6.1.21-v8+-aarch64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg 4.3.6-0, ffprobe 4.3.6-0, phantomjs broken
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2020.06.20, mutagen-1.47.0, requests-2.32.0, sqlite3-3.34.1, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp)
[AdultSwim] Extracting URL: https://www.adultswim.com/videos/ghost-in-the-shell/reembody
[AdultSwim] reembody: Downloading JSON metadata
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading JSON metadata
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading XML
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading m3u8 information
[AdultSwim] 1_QUa04dR56u-Hscc6qAkw: Downloading JSON metadata
[AdultSwim] 1_QUa04dR56u-Hscc6qAkw: Downloading m3u8 information
[info] 1_QUa04dR56u-Hscc6qAkw: Downloading subtitles: en
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] 1_QUa04dR56u-Hscc6qAkw: Downloading 1 format(s): hls-8628
[info] Writing video subtitles to: Ghost in the Shell - Reembody [1_QUa04dR56u-Hscc6qAkw].en.scc
[debug] Invoking http downloader on "http://amd.cdn.turner.com/adultswim/episodes/us_geo/gits2/2017/08/gits2_2ndgig_001_Digital_Reembody/cc_sidecars/gits2_2ndgig_001_Digital_Reembody_hls_scenarist.scc"
ERROR: Unable to download video subtitles for 'en': HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/networking/_urllib.py", line 396, in _send
    res = opener.open(urllib_req, timeout=self._calculate_timeout(request))
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 4320, in _write_subtitles
    self.dl(sub_filename, sub_copy, subtitle=True)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 3169, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/downloader/common.py", line 466, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/downloader/http.py", line 369, in real_download
    establish_connection()
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/downloader/http.py", line 120, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 4131, in urlopen
    return self._request_director.send(req)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/networking/common.py", line 115, in send
    response = handler.send(request)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/networking/_helper.py", line 208, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/networking/common.py", line 335, in send
    return self._send(request)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/networking/_urllib.py", line 401, in _send
    raise HTTPError(UrllibResponseAdapter(e.fp), redirect_loop='redirect error' in str(e)) from e
yt_dlp.networking.exceptions.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 1606, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 1762, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 1821, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 2982, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 3236, in process_info
    sub_files = self._write_subtitles(info_dict, temp_filename)
  File "/usr/local/lib/python3.9/dist-packages/yt_dlp/YoutubeDL.py", line 4328, in _write_subtitles
    raise DownloadError(msg)
yt_dlp.utils.DownloadError: Unable to download video subtitles for 'en': HTTP Error 404: Not Found

from yt-dlp.

bashonly avatar bashonly commented on June 28, 2024

I get the 404 with subs too, but I can't repro the video download issue

$ yt-dlp --ignore-config --test "https://www.adultswim.com/videos/ghost-in-the-shell/reembody"
[AdultSwim] Extracting URL: https://www.adultswim.com/videos/ghost-in-the-shell/reembody
[AdultSwim] reembody: Downloading JSON metadata
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading JSON metadata
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading XML
[AdultSwim] 36974239e37c8560fc1a1379cd63c75c511ed658: Downloading m3u8 information
[AdultSwim] 1_QUa04dR56u-Hscc6qAkw: Downloading JSON metadata
[AdultSwim] 1_QUa04dR56u-Hscc6qAkw: Downloading m3u8 information
[info] 1_QUa04dR56u-Hscc6qAkw: Downloading 1 format(s): hls-5115
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 246
[download] Destination: Ghost in the Shell - Reembody [1_QUa04dR56u-Hscc6qAkw].mp4
[download] 100% of    3.41MiB in 00:00:00 at 7.50MiB/s

from yt-dlp.

boredzo avatar boredzo commented on June 28, 2024

Oh, interesting. So the subs and hls-8628 are affected, but hls-5115 is not.

I have downloaded the hls-5115 version of that video and confirmed that it has no subtitle track. So there must be some way the web player is getting the subtitles (which yt-dlp --list-formats is able to see the existence of). And if that difference between the web player and yt-dlp can be fixed, then that may also fix downloading hls-8628 for these video(s).

I can confirm that I was also downloading hls-8628 of the season 1 episodes, which worked (subs and video alike).

from yt-dlp.

boredzo avatar boredzo commented on June 28, 2024

Can you reproduce the non-subs error with --sub-langs=-en,-eng --format=hls-8628?

from yt-dlp.

bashonly avatar bashonly commented on June 28, 2024

yep, mb

from yt-dlp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.