• 0 Posts
  • 29 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle


















  • Ah, yeah that’s what I figured.

    Unfortunately, (or fortunately for me) I have not used YouTube in a traditional way in a very long time. I use FreeTube, Piped, Invidious, NewPipe, VueTube depending on the platform I currently am. And that is why I don’t have any cookies for it. I don’t really care for liking or commenting the videos as just watching them. All the above mentioned programs support own “offline” subscription lists, and most have interest-based profiles which you cannot achieve with a traditional YouTube account.

    But yeah, sadly this not for me in its current form, I will join whoever added a comment here earlier about waiting for support of json - based subscription lists - that is, of course, if you decide to go that route, or at least as bare minimum if you could remove the cookie requirement and have “anonymous search and view” functionality. I believe many of us here on Lemmy that are concerned about privacy will greatly appreciate that. YouTube itself, mpv, and yt-dlp don’t really need cookies to watch a video.

    Thanks for troubleshooting this with me.


  • Actual git still worked. I was able to git pull I also figured out a way to launch the script using bash - needed to export $SHELL - the only way it worked. I could not update yt-dlp to the latest version - the latest I could install is 2023.06.22 from the side PPA repo. Official Ubuntu repo provides 2023.03 and pip breaks my system with compatibility issues that I don’t have desire to troubleshoot. I could try in the future downloading their binary but I don’t like when stuff doesn’t auto-update. The preferences worked this time and I was able to save them.

    yt-dlp gives me an error every time I try to browse either Trending or do a search. I have a TV with a cross and 1 option to Abort Selection.

    I have a question: is the script dependent on having browser cookies? Because I don’t have any of the browsers installed on a headless machine. ANd I think that is what yt-dlp wasn’t happy about…

    Downloading /feed/trending ...
    Traceback (most recent call last) :
    File "/usr/bin/yt-dlp", line 33, in <module>
    sys. , 'console_scripts'
    ' yt—dtp'
    Fite py", tine 1008, in main
    File "/usr/lib/python3/dist-packages/yt_dlp/_init_.py", tine 962, in _real_main
    with YoutubeDL(ydl_opts) as ydl:
    AAAAAAAAAAAAAAAAAAA
    File "/usr/tib/python3/dist—packages/yt_dlp/YoutubeDL.py", tine 762, in _ init
    self. _ setup_opener()
    File "/usr/Iib/python3/dist—packages/yt_dIp/YoutubeDL.py", tine 3929, in _ setup_opener
    self. cookiejar = load_cookies(opts_cookiefile, opts_cookiesfrombrowser, self)
    File "/usr/lib/python3/dist-packages/yt_dtp/cookies.py", line 106, in load_cookies
    extract_cookies_from_browser(browser_name, profile, YDLLogger(ydI), keyring=keyring, container=container))
    File "/usr/lib/python3/dist-packages/yt_dlp/cookies.py", line 123, in extract_cookies_from_browser
    return _extract_firefox_cookies(profile, container, logger)
    File py", tine 148, in _extract_firefox_cookies
    raise FileNotFoundError(f' could not find Firefox cookies database in {search_root}')
    FiteNotFoundError: could not find Firefox cookies database in /home/user/. mozitta/firefox
    Completed /feed/trendinq.