Skip to content

--mark-watched fails with urlopen error #8149

@TrainerRed151

Description

@TrainerRed151

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

USA

Provide a description that is worded well enough to be understood

When I run the --mark-watched option on a URL, I get a <urlopen error [Errno 61] Connection refused>

$ yt-dlp --cookies-from-browser brave --simulate --mark-watched -vU https://www.youtube.com/watch?v=72zEL9iSIXo
[debug] Command-line config: ['--cookies-from-browser', 'brave', '--simulate', '--mark-watched', '-vU', 'https://www.youtube.com/watch?v=72zEL9iSIXo']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip)
[debug] Python 3.11.5 (CPython x86_64 64bit) - macOS-11.7-x86_64-i386-64bit (OpenSSL 3.1.2 1 Aug 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[Cookies] Extracting cookies from brave
[debug] Extracting cookies from: "/Users/brian/Library/Application Support/BraveSoftware/Brave-Browser/Default/Cookies"
[debug] using find-generic-password to obtain password from OSX keychain
[Cookies] Extracted 253 cookies from brave
[debug] cookie version breakdown: {'v10': 250, 'other': 0, 'unencrypted': 3}
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
yt-dlp is up to date (stable@2023.07.06)
[youtube] Extracting URL: https://www.youtube.com/watch?v=72zEL9iSIXo
[youtube] 72zEL9iSIXo: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[debug] [youtube] Copying __Secure-3PAPISID cookie to SAPISID cookie
[youtube] 72zEL9iSIXo: Downloading ios player API JSON
[youtube] 72zEL9iSIXo: Downloading android player API JSON
[debug] Loading youtube-nsig.afd1b6e5 from cache
[debug] [youtube] Decrypted nsig fbzBx732QfMvvFK => ta_Y2wHAywxVZw
[youtube] 72zEL9iSIXo: Downloading m3u8 information
[youtube] 72zEL9iSIXo: Marking watched
WARNING: [youtube] Unable to mark watched: <urlopen error [Errno 61] Connection refused>
[youtube] 72zEL9iSIXo: Marking fully watched
WARNING: [youtube] Unable to mark watched: <urlopen error [Errno 61] Connection refused>
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 72zEL9iSIXo: Downloading 1 format(s): 303+251

When I don't have the --simulate flag, it does seem to successfully download the video, but still doesn't mark it as watched:

$ yt-dlp --cookies-from-browser firefox --mark-watched -vU https://www.youtube.com/watch?v=72zEL9iSIXo
[debug] Command-line config: ['--cookies-from-browser', 'firefox', '--mark-watched', '-vU', 'https://www.youtube.com/watch?v=72zEL9iSIXo']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip)
[debug] Python 3.11.5 (CPython x86_64 64bit) - macOS-11.7-x86_64-i386-64bit (OpenSSL 3.1.2 1 Aug 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[Cookies] Extracting cookies from firefox
[debug] Extracting cookies from: "/Users/brian/Library/Application Support/Firefox/Profiles/i4vysl6d.default-release/cookies.sqlite"
[Cookies] Extracted 1676 cookies from firefox
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
yt-dlp is up to date (stable@2023.07.06)
[youtube] Extracting URL: https://www.youtube.com/watch?v=72zEL9iSIXo
[youtube] 72zEL9iSIXo: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[youtube] 72zEL9iSIXo: Downloading ios player API JSON
[youtube] 72zEL9iSIXo: Downloading android player API JSON
[debug] Loading youtube-nsig.afd1b6e5 from cache
[debug] [youtube] Decrypted nsig erRHk3xqjOs_TF_ => Ny_uxUg5RRrxfA
[youtube] 72zEL9iSIXo: Downloading m3u8 information
[youtube] 72zEL9iSIXo: Marking watched
WARNING: [youtube] Unable to mark watched: <urlopen error [Errno 61] Connection refused>
[youtube] 72zEL9iSIXo: Marking fully watched
WARNING: [youtube] Unable to mark watched: <urlopen error [Errno 61] Connection refused>
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 72zEL9iSIXo: Downloading 1 format(s): 303+251
[debug] Invoking http downloader on "https://rr2---sn-qxoedne7.googlevideo.com/videoplayback?expire=1695088328&ei=aKoIZebUJ7qhlu8Pu_KriAs&ip=73.243.202.99&id=o-AMUDTCivQJZmlM8DXBaJ9c4Z9R7bE2_0pjH3X8FeSAoI&itag=303&source=youtube&requiressl=yes&mh=KS&mm=31%2C26&mn=sn-qxoedne7%2Csn-q4fzene7&ms=au%2Conr&mv=m&mvi=2&pl=18&initcwndbps=1415000&siu=1&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=47294725&dur=441.583&lmt=1617493441873642&mt=1695066315&fvip=5&keepalive=yes&fexp=24007246&beids=24350017&c=IOS&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAMTPYqHo2-iSzADzpRzFjAC12jQkjFu85YNG8Ys-vw_6AiEArEXHe7hHqWFys0j2hqnywEcLq4F22zGdtSxDqfJ8Vuc%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAMWgkQoeIBja0FQkr5cm5V7qPkLqlhBVlbHb3oSnV-c3AiEA_NRfobW8lk3-JZby6XnpLm5aAJxh78nkSNTwrowfzBc%3D"
[download] Destination: 5 Ways Windows is Better Than Linux [72zEL9iSIXo].f303.webm
[download] 100% of   45.10MiB in 00:00:05 at 8.11MiB/s
[debug] Invoking http downloader on "https://rr3---sn-qxo7rn7k.googlevideo.com/videoplayback?expire=1695088328&ei=aKoIZeuHNuCU2_gP5KylOA&ip=73.243.202.99&id=o-AKDDvhk4WpTGCLe3AhJ3zcO0GcscnGV3PNKRMKrW-JXU&itag=251&source=youtube&requiressl=yes&mh=KS&mm=31%2C26&mn=sn-qxo7rn7k%2Csn-q4fzene7&ms=au%2Conr&mv=m&mvi=3&pl=18&initcwndbps=1415000&siu=1&spc=UWF9fwAhO1z2zY-GpZ_A71sb616iP0mmNuNLsXrnXrZF&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=6106418&dur=441.621&lmt=1617317228346810&mt=1695066315&fvip=5&keepalive=yes&fexp=24007246&beids=24350017&c=ANDROID&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgBPDnt7f1cPPb3rmZgjcloTjY7BaXQpqQlwXFOcNhlCYCIAw1aLzodZzNcjZC2s32qpuoMuu5WrYQtYPDQTXHtDKn&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAOOrhL0E8F6TyV3k2bZWpl2ZKEZmOQEiRgMfNnjI5gyXAiADiJ_aymmqqkv8vj0UHN95IW6PqmCth8NwksY2pG6hWQ%3D%3D"
[download] Destination: 5 Ways Windows is Better Than Linux [72zEL9iSIXo].f251.webm
[download] 100% of    5.82MiB in 00:00:00 at 7.76MiB/s
[Merger] Merging formats into "5 Ways Windows is Better Than Linux [72zEL9iSIXo].webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:5 Ways Windows is Better Than Linux [72zEL9iSIXo].f303.webm' -i 'file:5 Ways Windows is Better Than Linux [72zEL9iSIXo].f251.webm' -c copy -map 0:v:0 -map 1:a:0 -movflags +faststart 'file:5 Ways Windows is Better Than Linux [72zEL9iSIXo].temp.webm'
Deleting original file 5 Ways Windows is Better Than Linux [72zEL9iSIXo].f251.webm (pass -k to keep)
Deleting original file 5 Ways Windows is Better Than Linux [72zEL9iSIXo].f303.webm (pass -k to keep)

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['--cookies-from-browser', 'brave', '--simulate', '--mark-watched', '-vU', 'https://www.youtube.com/watch?v=72zEL9iSIXo']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip)
[debug] Python 3.11.5 (CPython x86_64 64bit) - macOS-11.7-x86_64-i386-64bit (OpenSSL 3.1.2 1 Aug 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[Cookies] Extracting cookies from brave
[debug] Extracting cookies from: "/Users/brian/Library/Application Support/BraveSoftware/Brave-Browser/Default/Cookies"
[debug] using find-generic-password to obtain password from OSX keychain
[Cookies] Extracted 257 cookies from brave
[debug] cookie version breakdown: {'v10': 254, 'other': 0, 'unencrypted': 3}
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
yt-dlp is up to date (stable@2023.07.06)
[youtube] Extracting URL: https://www.youtube.com/watch?v=72zEL9iSIXo
[youtube] 72zEL9iSIXo: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[youtube] 72zEL9iSIXo: Downloading ios player API JSON
[youtube] 72zEL9iSIXo: Downloading android player API JSON
[debug] Loading youtube-nsig.afd1b6e5 from cache
[debug] [youtube] Decrypted nsig SrMn0XWHcfNR6r6 => uNRWPpJ4kN8C_A
[youtube] 72zEL9iSIXo: Downloading m3u8 information
[youtube] 72zEL9iSIXo: Marking watched
WARNING: [youtube] Unable to mark watched: <urlopen error [Errno 61] Connection refused>
[youtube] 72zEL9iSIXo: Marking fully watched
WARNING: [youtube] Unable to mark watched: <urlopen error [Errno 61] Connection refused>
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 72zEL9iSIXo: Downloading 1 format(s): 303+251

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions