I made the icy-nord and icy-nord-darker themes.
@promitheas:matrix.org
- 2 Posts
- 18 Comments
promitheas@programming.devto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Anyone know how to rip the video content of a page like this?English3·2 months agoOh, Im sorry. If I’m honest I completely forgot. Here it is:
You will need ffmpeg installed, and I did write it for Linux, so I’m not sure if there are differences for windows. Worst case you need to slightly modify it to work on windows.
#!/usr/bin/env python3 import requests import os import subprocess from urllib.parse import urljoin import sys def download_video_chunks(base_url, output_file): """ Downloads video chunks from the given base URL and merges them into a single file. :param base_url: The URL to the playlist or base directory containing the video chunks. :param output_file: The name of the output video file (e.g., "output.mp4"). """ try: # Get the playlist file (e.g., .m3u8 or .ts index file) print(f"Fetching playlist or video chunk URLs from: {base_url}", flush=True) response = requests.get(base_url, timeout=10) response.raise_for_status() # Parse the playlist to get the chunk URLs lines = response.text.splitlines() chunk_urls = [urljoin(base_url, line) for line in lines if line and not line.startswith("#")] if not chunk_urls: print("No video chunks found in the provided URL.", flush=True) return # Create a directory for storing chunks os.makedirs("video_chunks", exist_ok=True) # Download each chunk chunk_files = [] for idx, chunk_url in enumerate(chunk_urls): chunk_file = os.path.join("video_chunks", f"chunk_{idx:04d}.ts") print(f"Downloading {chunk_url}...", flush=True) with requests.get(chunk_url, stream=True) as chunk_response: chunk_response.raise_for_status() with open(chunk_file, "wb") as f: for chunk in chunk_response.iter_content(chunk_size=1024): f.write(chunk) chunk_files.append(chunk_file) # Merge the chunks into a single file using ffmpeg print("Merging chunks...", flush=True) with open("file_list.txt", "w") as f: for chunk_file in chunk_files: f.write(f"file '{chunk_file}'\n") subprocess.run(["ffmpeg", "-f", "concat", "-safe", "0", "-i", "file_list.txt", "-c", "copy", output_file], check=True) print(f"Video saved as {output_file}", flush=True) except requests.exceptions.RequestException as e: print(f"An error occurred while downloading: {e}", flush=True) except subprocess.CalledProcessError as e: print(f"An error occurred while merging: {e}", flush=True) finally: # Clean up temporary files if os.path.exists("file_list.txt"): os.remove("file_list.txt") for chunk_file in chunk_files: os.remove(chunk_file) # if os.path.exists("video_chunks"): # os.rmdir("video_chunks") if __name__ == "__main__": base_url = input("Enter the URL of the video playlist or base directory: ") output_file = input("Enter the output video file name (e.g., output.mp4): ") print(f"Starting download process for playlist: {base_url}", flush=True) download_video_chunks(base_url, output_file)
If you guys can recommend a fair and open pastebin alternative for me I will upload it there as well and edit this with the link
promitheas@programming.devto Ask Lemmy@lemmy.world•What are some aspects of UI/UX seen in modern websites that really grind your gears?46·2 months agoWhen a page is so bloated with crap, certain elements load much after certain others, leading me to believe the page has loaded, and to click on something jus as somthing else loads and pushes it down/to the side.
promitheas@programming.devto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Anyone know how to rip the video content of a page like this?English3·2 months agoI think i wrote a short python script to do this on another site. Let me get home and see if i can help you out
promitheas@programming.devto Ask Lemmy@lemmy.world•To those who downvote your own comments… Why?423·2 months agoWill test and edit. Ill leave my automatic upvote on, so first person to read this please downvote this comment
Edit: no no guys, stop upvoting 🤣
Edit 2: sorry OP, guess i cant test out my theory, which was that if you leave your upvote, but get downvoted once, it shows up as 0
promitheas@programming.devOPto DeGoogle Yourself@lemmy.ml•Fairphone 5 /e/os - 128GB/6GB or 256GB/8GB Storage/RAM?1·3 months agoOhh i see what you meant now.
I do like their kission and how repairable their phone is, so if im going to get a new one i want it to be that one. As for the OS, if down the road i do decide to move away from /e/os i can look into repacing it down the road
promitheas@programming.devOPto DeGoogle Yourself@lemmy.ml•Fairphone 5 /e/os - 128GB/6GB or 256GB/8GB Storage/RAM?5·3 months agoI can see your point about the price, but I dont need to change the OS on it. They sell the Fairphone 5 both with googled android, as well as a version with /e/os.
Thanks for the info! It would be good to be aware of the term
Whats alt-tech?
promitheas@programming.devto Ask Lemmy@lemmy.world•Those who live outside of the US, what's something Americans aren't ready to hear?5·4 months agoBecause thats what you’ve been brainwashed to think the world wants, so thats what you hear
Not sure of exact date, but it was around 2005-2006 and I had saved up enough money to get me a lego N1 starfighter kit from star wars. Last time remember feeling genuine joy
Is it weird that i dont want to be remembered? I just want to fade into nothingness. None of it matters anyway
promitheas@programming.devto Ask Lemmy@lemmy.world•Does multiple of Lemmy Community with the same name but on different instances matter or would it be mostly identical?6·6 months agoI changed how i look at communities when i switched to lemmy. Instead of just looking at the part before the @ i look at the whole thing and consider that to be its name.
So instead of the gaming community its gaming@xyz.qr and gaming@abc.de as a whole.
Tl;dr: theyre different separate comminities and the name is for all intents and purposes the entire thing.
I suggest subscribing to all of them for the topics you want and slowly through exposure learning which ones youd like to keep.
promitheas@programming.devto Open Source@lemmy.ml•cqwrteur's fork of Linux kernel, rename it to Cinux31·6 months agoCould someone compile a list of maintainers associated with israeli companies to highlight the hypocrisy of removing russian associated maintainers to comply with international sanctions, when the ICJ has an ongoing case of genocide against israel?
promitheas@programming.devto Ask Lemmy@lemmy.world•Does anyone else here have lupus? Just got diagnosed and I am really scared/upset7·8 months agoSorry, I dont have any advice to offer as I dont know much or anything at all about lupus, but I just want to encourage you to keep strong. Ive read a few of the comments from people who seem more experienced, and I get the impression that its very possible to live a fairly normal life as long as you make a few changes to lifestyle. Just keep strong, and surround yourself with supportive, positive people and youll get through it. 🫂
promitheas@programming.devto DeGoogle Yourself@lemmy.ml•Using OsmAnd~ navigation from Google Maps Web search2·9 months agoThanks, this is exactly what I needed!
promitheas@programming.devto DeGoogle Yourself@lemmy.ml•Using OsmAnd~ navigation from Google Maps Web search1·9 months agoI meant any location you select on the map, not custom pins or anything :)
I just tried it from the web version of google maps and it works. The app version just give a link, which does not contain any coordinates so thats why OsmAnd+ cant interpret it.
App google maps: https://maps.app.goo.gl/kGiSocirt8b73pHN8
Not sure if there is a way to get the top format from the app
promitheas@programming.devto DeGoogle Yourself@lemmy.ml•Using OsmAnd~ navigation from Google Maps Web search2·9 months agoIm using OsmAnd+ and when I share something from Google maps to it it either doesnt find it at all, or gives me a location way off. I just shared a pin relatively nearby to me, and in OsmAnd+ it thought the location was in the middle of the ocean.
I really want to switch away from Google maps, could you please explain a bit more what you are exactly doing and getting it to work?
What worries me is in the last sentence. If they use GitHub which is owned by microsoft itself being a US company, couldn’t the government of the US order microsoft to take down the repositories? Wouldn’t an alternative git platform be better for this?