HobbyistDev / yt-dlp

A youtube-dl fork with additional features and fixes
https://discord.gg/H5MNcFW63r
The Unlicense
0 stars 2 forks source link

dailywire-fix #4

Open nobodyatandnothing opened 1 year ago

nobodyatandnothing commented 1 year ago

Checklist

Region

No response

Provide a description that is worded well enough to be understood

404 error

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

./yt-dlp -o '%(title)s.%(ext)s' 'https://www.dailywire.com/episode/biology-and-man-robert-trivers-and-dr-jordan-b-peterson' --cookies-from-browser firefox -v
[debug] Command-line config: ['-o', '%(title)s.%(ext)s', 'https://www.dailywire.com/episode/biology-and-man-robert-trivers-and-dr-jordan-b-peterson', '--cookies-from-browser', 'firefox', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.06.29 [9d339c41e] (zip)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Python 3.10.5 (CPython 64bit) - Linux-5.18.11-1159.native-x86_64-with-glibc2.35 (glibc 2.35)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg d6a1e59 (fdk,setts), ffprobe d6a1e59, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, secretstorage-3.3.2, sqlite3-2.6.0, websockets-10.3
[Cookies] Extracting cookies from firefox
[debug] Extracting cookies from: "/home/g/.mozilla/firefox/fvwcddni.default-release/cookies.sqlite"
[Cookies] Extracted 607 cookies from firefox
[debug] Proxy map: {}
[debug] [DailyWire] Extracting URL: https://www.dailywire.com/episode/biology-and-man-robert-trivers-and-dr-jordan-b-peterson
[DailyWire] biology-and-man-robert-trivers-and-dr-jordan-b-peterson: Downloading JSON metadata
ERROR: [DailyWire] biology-and-man-robert-trivers-and-dr-jordan-b-peterson: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 640, in extract
    ie_result = self._real_extract(url)
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/dailywire.py", line 134, in _real_extract
    slug, episode_info = self._get_json(url)
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/dailywire.py", line 26, in _get_json
    nextdata_api_json = self._download_json(
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 1002, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 966, in download_handle
    res = self._download_webpage_handle(
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 834, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 791, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/extractor/common.py", line 773, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
  File "/home/g/Desktop/yt-dlp/yt-dlp/yt_dlp/YoutubeDL.py", line 3596, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
HobbyistDev commented 1 year ago

Will be fixed in #3, This link need login and the current extractor only scrape from webpage

HobbyistDev commented 1 year ago

Hm, which one you used ? In #3 or from upstream ?. The extractor in #3 is broken, it's unstable