Gutless2615
@Gutless2615@ttrpg.network
- Comment on Cyberpunk 2077 released in December 2020. Almost 4 years later, what is your opinion on it? 1 week ago:
You know what. Props. In all The Discourse why did I never hear / think of that. It IS cyberpunk af.
- Comment on Cyberpunk 2077 released in December 2020. Almost 4 years later, what is your opinion on it? 1 week ago:
I played at release and you had to do cop shit all the time. Not very punk at all. Had that changed?
- Comment on Men Harassed A Woman In A Driverless Waymo, Trapping Her In Traffic 1 month ago:
404 don’t miss. Best tech journoing in the biz imho
- Comment on Marques Brownlee says ‘I hear you’ after fans criticize his new wallpaper app 1 month ago:
Tech bro knob slobber.
- Comment on Youtube has fully blocked Invidious 1 month ago:
Yeah this is more elegant and closer to what I’d actually want to implement. I was more just showing what could be done in literally thirty seconds on the can with ChatGPT.
- Comment on Youtube has fully blocked Invidious 1 month ago:
“Give me a Python script using yt-dlp that I can run on a cronjob that will download the videos from any of my subscribed channels since the last time the script was run”
You can use the following Python script to download videos from your subscribed channels since the last run. This script uses
yt-dlp
and stores the last download timestamp to track new videos.First, ensure you have
yt-dlp
installed:pip install yt-dlp
Then, create a script called
download_videos.py
:import os import json import subprocess from datetime import datetime # Configuration last_run_file = 'last_run.json' download_directory = 'downloads' # Ensure the download directory exists os.makedirs(download_directory, exist_ok=True) # Load the last run time if os.path.exists(last_run_file): with open(last_run_file, 'r') as f: last_run = json.load(f)['last_run'] else: last_run = datetime.now().isoformat() # Update the last run time to now current_run = datetime.now().isoformat() # Command to get videos from subscribed channels since the last run command = [ 'yt-dlp', '--download-archive', 'archive.txt', '--output', f'{download_directory}/%(title)s.%(ext)s', '--date-after', last_run, '--no-post-overwrites', '--merge-output-format', 'mp4', 'https://www.youtube.com/channel/CHANNEL_ID', # Replace with your channel URL ] # Run the command subprocess.run(command) # Save the current run time with open(last_run_file, 'w') as f: json.dump({'last_run': current_run}, f) print("Download complete. Next run will check for videos since:", current_run)
Setting Up the Cron Job
-
Make the script executable:
chmod +x download_videos.py
-
Open your crontab:
crontab -e
-
Add a line to run the script at your desired interval (e.g., daily at 2 AM):
0 2 * * * /path/to/python /path/to/download_videos.py
Notes
- Replace
CHANNEL_ID
in the script with your actual channel IDs or use a playlist URL if preferred. - The
archive.txt
file keeps track of already downloaded videos to avoid duplicates. - Adjust the paths to Python and your script as needed.
-
- Comment on Youtube has fully blocked Invidious 1 month ago:
Well you know what they say “Great minds think quicker than mine and probably have already had that thought.”
- Comment on Youtube has fully blocked Invidious 1 month ago:
Donate to the EFF for fighting that fight in court already.
- Comment on Youtube has fully blocked Invidious 1 month ago:
Yes but literally throwing together a script to download the days subscription videos to a jellyfin media drive would be stupidly simple.
- Comment on Why is UI design backsliding? 1 month ago:
The design has absolutely not “definitely” improved.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Otw but after replacing the flat Ethernet cable (no change), and while waiting for the vero I switched to connecting to jellyfin via its local address instead of its external one (🤦♂️) and zero buffering silky smooth everything. I don’t understand why but holding my breath for now while I wait for the vero when I can retire this unit at least to the office tv where it doesn’t have the responsibility of always performing for the family.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
It’s really neither much to nor very complex at all. I have a home lab stack of mini PCs and raspberry pi’s in my office hooked up to a switch to my router. Among the stack is an intel nuc with a few attached usb hdd, sharing those drives via NFS and Samba and hosting Jellyfin. That machine is more than capable for the task. In order to get that media to the living room I have a raspberry pi 4 running libreelec also hard wired to the Ethernet also to the same switch (running through a cable window in the wall). No, I had not heard of the issues with flat Ethernet cables that are otherwise advertised as cat 7 compatible, because I have (some) of the machines networked with flat Ethernet cables. Those are getting replaced.
For the most part the pi4 libreelec machine handles content fine. But I have a number of multichannel audio, hd not-quite-4k animated movies that do routinely cause buffering issues. It seems most likely upon review and after the comments in this thread that it was a simple bottleneck at the pi4. The same content plays unstuttwring on other more equipped machines on the network. I do think the router is on its way out though and deserves an upgrade but that looks to be an optional next step. I’m replacing the pi as a media machine for now.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Sorry you seem to not be getting it lemmy.world/comment/11720780
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
? Not particularly. I have an intel mini pc hosting jellyfin and a few drives via nfs and samba in one room along with the rest of my homelab. In the living room I need to get that media to the tv so I’m using a pi4 running libreelec atm to connect to those shares.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Woah really?? I am actually…
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Thanks, twice a day, asshole!
- Comment on A bipartisan data-privacy law could backfire on small businesses − 2 marketing professors explain why. 2 months ago:
The APRA is dog shit because it preempts states and would relegate any future privacy legislation to an impossible slog through congress. It’s also a bill that’s already all but dead so this hilariously tone deaf hit piece from marketing professors about how the APRA is bad because it hurts targeting advertisers is dumb both for its underlying suppositions but also because ironically, these brilliant bastions of marketing knowledge don’t seem to realize the appropriate time for this piece was two months ago.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
I don’t, super helpful. So I’m guessing this is a pi bottleneck. Just ordered the Vera V so we’ll see! Fingers crossed for happy toddler.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Thanks! Super helpful data point. I don’t have the same buffering issues streaming the same video to my desktop over nfs, so I’m leaning towards it being a pi4 bottleneck. Just plopped down for a Vera V so fingers crossed that’s the issue.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
❤️
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Right? The absolute gall.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Right. The architecture we’re talking about right now is a NFS hosted share going to a Kodi instance, not a jellyfin instance sharing to Kodi. Kodi does not transcode. It handles things similarly to VLC afaik.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
It’s not doing hardware transcoding afaik. This is the equivalent of running VLC, right? It’s kodi we’re not talking about jellyfin transcoding.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
Appreciate the solicited technical advice, less so the unsolicited parenting advice, thanks! You’ll be shocked to hear that hyperbole exists, I’m sure. I’m just trying to watch the Aristocats with the kiddo without them wondering why the screen stops mid song, stranger.
- Comment on Please help me stop my baby from crying because kodi keeps buffering 2 months ago:
No no transcoding happening on kodi, it’s just playing it straight over the lan. That said I do have jellyfin set up on a machine that can handle transcoding for a number of clients. I gave considered switching to Kodi +Jellyfin and seeing if that’s better.
- Submitted 2 months ago to selfhosted@lemmy.world | 67 comments
- Comment on AI Music Generator Suno Admits It Was Trained on ‘Essentially All Music Files on the Internet’ 3 months ago:
Taking other people’s creative works to create your own productive work is allowed if you are making a fair use. There’s a very good argument that use such as training a model on a work would be a fair use under the current test; being a transformative use, that replicates practically no actual part of the original piece in the finished work, that (arguably) does not serve as a replacement for that specific piece in the market.
Fair use is the cornerstone of remix art, of fan art, of huge swathes of musical genres. What we are witnessing is the birth of a new technique based on remixing and unfortunately this time around people are convinced that fighting on the side of big copyright is somehow the good thing for artists.
- Comment on "Portainer restructuring and layoffs" (cross-post from another site) 4 months ago:
This is going to blow your mind but it’s a joke, and not even a mean spirited one. We all started with training wheels, nothing wrong with that.
- Comment on "Portainer restructuring and layoffs" (cross-post from another site) 4 months ago:
Portainer is just training wheels for people that haven’t learned to manage their own containers yet.