• 1 Post
  • 588 Comments
Joined 1 year ago
cake
Cake day: July 20th, 2023

help-circle


  • Another example, which i can personally verify has been working fine for months. It works a bit different to the above, it downloads the latests 2* vids that are not already downloaded and runs once every hour with cron. I also attempted to filter out live vids and shorts.

    Channels i am “subscribed” too are stored in a single text file, it also uses the avc1 codec because i found p9 and p10 had issues with the jellyfin client on my tv.

    looks like this, i added categories but i don’t actually use them in the script besides putting them in a variable, lol. Vid-limit is how many of the latests vids it should look at to download. The original reason i implemented that is so i could selectively download a bulk of latests vids if i wanted to.

    Cat=Science
    Name=Vertitasium
    VidLimit=2
    URL=https://www.youtube.com/channel/UCHnyfMqiRRG1u-2MsSQLbXA
    
    Cat=Minecraft
    Name=EthosLab
    VidLimit=2
    URL=https://www.youtube.com/channel/UCFKDEp9si4RmHFWJW1vYsMA
    
    #!/bin/bash
    
    
    # Define the directory to store channel lists and scripts
    script_dir="/.../YTDL"
    
    # Define the base directory to store downloaded videos
    base_download_dir="/.../youtubevids"
    
    # Change to the script directory
    cd "$script_dir"
    
    # Parse the Channels.txt file and process each channel
    awk -F'=' '
      /^Cat/ {Cat=$2}
      /^Name/ {Name=$2}
      /^VidLimit/ {VidLimit=$2}
      /^URL/ {URL=$2; print Cat, Name, VidLimit, URL}
    ' "$script_dir/Channels.txt" | while read -r Cat Name VidLimit URL; do
        # Define the download directory for this channel
        download_dir="$base_download_dir"
        
        # Define the download archive file for this channel
        archive_file="$script_dir/DLarchive$Name.txt"
        
        # Create the download directory if it does not exist
        mkdir -p "$download_dir"
        
        # If VidLimit is "ALL", set playlist_end option to empty, otherwise set it to --playlist-end <VidLimit>
        playlist_end_option=""
        if [[ $VidLimit != "ALL" ]]; then
            playlist_end_option="--playlist-end $VidLimit"
        fi
    yt-dlp \
            --download-archive "$archive_file" \
            $playlist_end_option \
            --write-description \
            --write-thumbnail \
            --convert-thumbnails jpg \
            --add-metadata \
            --embed-thumbnail \
            --match-filter "!is_live & !was_live & original_url!*=/shorts/" \
            --merge-output-format mp4 \
            --format "bestvideo[vcodec^=avc1]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
            --output "$download_dir/${Name} - %(title)s.%(ext)s" \
            "$URL"
            
    done
    






  • webghost0101@sopuli.xyztoTechnology@lemmy.worldYoutube has fully blocked Invidious
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    5 days ago

    Oh no, the execution and information thus far has been horrible. You are alluding to blockchain are you? When i look at the website you post i see absolutely nothing that i even recognize as web3 its all cryptostuff.

    I don’t get why everybody is so hell-bend on blockchain based internet (sure its decentralized but come on, we’re creative enough to do better). Its like people don’t get the point of “user owned” and are expecting companies to build a better internet for them without serving their own interests.

    No, we are going to need to do this ourselves, self host our own data and services, open source everything.

    Lemmy and the fediverse are the closest i have seen to being proto web 3 in spirit and there are also still far from perfect.

    I have read the “What is web3” from that site and could not disagree on the definition more. I would not be suprised if both the blockchain cults and this website are part of the propaganda machine that is stopping a free internet from happening.

    My web3 is aligned much more with this: https://www.fsf.org/blogs/community/user-liberation-watch-and-share-our-new-video



  • That lazy ass is a volunteer spending their free time filtering our crap.

    That mods (need to) exist is also a symptom of bigger issues, ideally we don’t need mods and are capable to self organized in a respectful way.

    This is not reddit, you have the abilities to make a better science place on the fediverse, be the example of how you think it should be done. (Get off you lazy ass or understand that life for most is more then social media.

    Its not perfect but its that freedom to disagree and build your own that sets us apart.


  • People having a laugh isn’t the problem.

    There is a real problem with the thread format of social media however.

    My proof is I can’t find the “in this discussion relevant” thread of masturbation jokes because time has moved on and so did the discussion. [Edit: your comment is only 1h old, so not sure whats up]

    We need a much better way to organize our speech and discussions because a single scroll page sorted by time, or contextless votes ain’t doing it.

    I actually noticed that some of my comments are reacted very different towards depending on the time of day, what side of planet earth is awake at the time.

    There is an argument to be had that certain troll farms love to drown discussions in shitposts and maybe we should be more mindful of the patterns.

    But to say we should crack down on any form of jokes, which are an important part of our human expression that goes too far, thats what i disliked about r/science


  • I don’t judge people who give in to the oppressor. Life is hard and you have to pick your battles, more important stuff then blocking ads for “normal” people.

    For me its largely a disability/accessibility thing. The whole site is not usable.

    Its not that i want to die on this hill its that corporate bullshit is measurably detrimental to my health. My hill is the only one i can exist on.