skaala
a small bash script for determining the combined filesize of all vids in a youtube playlist

Currently reading:
skaala
a small bash script for determining the combined filesize of all vids in a youtube playlist

faen

sound artist
comfy friend
šŸ’  (Ā“惻Ļ‰ćƒ»ļ½€) šŸ’ 
Joined
Mar 22, 2022
Messages
84
Reaction score
155
comfy coins
šŸ’ 1,216,979
hey guys. i needed to download a large playlist of videos from youtube, but i wasn't sure how much space it would take up, so i needed a way to tell without downloading the whole damn playlist. i went ahead and made this bash script that takes a direct youtube playlist link, gets all the video links that are a part of that playlist, gets the size of each video, and then adds them all up at the end. currently this is bash only because im a linux cuck, but i have plans to port it to powershell or python if any of you think that would be helpful for you in some way. if i do expand on this in some capacity, i'll throw it in a git repository so i can actually do version control for it. for now though, its just a small, simple util and i figured i'd share it here in case any of you have some kind of use for it. use it however you want, idc.

it'll make a failed_videos.txt in your PWD if it's unable to get information for any of the videos in the playlist, and all output it makes is logged to a file called log.txt in your PWD

dependencies are-
bash
yt-dlp
bc
grep

here's a screenshot example of me running it on some random shell scripting tutorial playlist

20240329_19h15m29s_grim.png


fair warning, i haven't done a ton of work on this so it probably has bugs and whatnot, and in my experience running it, it's pretty slow

in its current form, it's available to download at https://0x0.st/XzHd.sh and i also attached it to this post


also skaala means 'scale' in finnish

cheers
 
Description
a small bash script for determining the combined filesize of all vids in a youtube playlist
/pub/ ~ public channel
Help Users
  • Jade @ Jade:
    sad!
    Quote Link
  • Xeraser @ Xeraser:
    aw fuck, daggerfall unity works on my ancient version of ChadOS
    Quote Link
  • Xeraser @ Xeraser:
    i'm gonna procrastinate for the next 20 years
    Quote Link
  • bananalizard @ bananalizard:
    i got the 90s sample cd archive but i have no clue how to translate the iso or bin files, can anyone help me with that??
    Quote Link
  • bananalizard @ bananalizard:
    nvm i cant even download poweriso
    Quote Link
  • nimfo.official.lvspl @ nimfo.official.lvspl:
    R.I.P. Kyre Cerridwyn Bakerā€¦ They found my friend hung by her neck, but she wouldnā€™t, couldnā€™t go through with suicideā€¦ It wasnā€™t in herā€¦.. I miss you, homieā€¦.. Canā€™t eve believe itā€¦ šŸ˜”šŸ˜”šŸ˜”
    Quote Link
  • Xeraser @ Xeraser:
    bananalizard said:
    i got the 90s sample cd archive but i have no clue how to translate the iso or bin files, can anyone help me with that??
    most of those isos were made from cds for the actual hardware
    • Like
    Reactions: faen
    Quote Link
  • Xeraser @ Xeraser:
    meaning no os or iso tool will read them natively
    Quote Link
  • Xeraser @ Xeraser:
    use either cdxtract (which Just Works (TM) but is pretty janky and ancient) or use awave studio (which works for 99% of formats though i've had it refuse to open 1 or 2 roland cds which cdxtract read just fine)
    Quote Link
  • Xeraser @ Xeraser:
    I found my Aria 2021s
    Quote Link
  • Xeraser @ Xeraser:
    they're shit.
    Quote Link
  • dominicb @ dominicb:
    i use cdxtract sometimes, works fine for .iso's but i could never figure out what to do for bin/cue files
    Quote Link
  • dominicb @ dominicb:
    fuck it tho we ball
    Quote Link
  • CybrGrl1984 @ CybrGrl1984:
    wow I havent been active here in a while, how are yall doing
    Quote Link
  • W @ wez:
    i bought 2 topic edits, when do they update?
    Quote Link
  • W Chat Bot:
    Guest wiz has joined the room.
  • W (Guest) wiz:
    Wow, just found this site. What an absolute gem
    Quote Link
  • hijodeputa @ hijodeputa:
    what a pretty website
    Quote Link
  • M Chat Bot:
    Guest Mamoticarica2009hardcoreslipknotfan4eva has joined the room.
  • M (Guest) Mamoticarica2009hardcoreslipknotfan4eva:
    No! It isn't. This is nothing but a silly compilation of varied, stolen content from various enterprises... You're not emulating anything! You're stealing it... You're not a gamer, but a shameless thief
    Quote Link
  • M (Guest) Mamoticarica2009hardcoreslipknotfan4eva:
    Dot.
    Quote Link
  • M (Guest) Mamoticarica2009hardcoreslipknotfan4eva:
    No! No! No! People from nintendia... Don't do it. Don't even think about. Instead, let's think about all these hours of hard work by Nintendo and their hard workers that make Nintendo existence possible... Buy their games, don't stole it!
    Quote Link
  • J Chat Bot:
    Guest jvnko has joined the room.
  • J (Guest) jvnko:
    hellooo
    Quote Link
  • J (Guest) jvnko:
    this place is cool
    Quote Link
      J (Guest) jvnko: this place is cool
      Back
      Top