summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-13Allow the passing of -y to the command to skip format checkmainSteph Enders
-y can be passed now as the first argument such as: yt-dlp-best -y "URL" this is a naive implementation given its positionally required as well as directly forcing into the answer check flow rather than separating out the execution logic into a subfunction and calling it. Technically speaking this executes in bash so that'd be fine. I just figured this would be easier to follow down the line. idk.
2024-08-19Ensure only one line of desired format is set in FMT_LINESteph Enders
While this bug didn't cause any issues (that we've found) it muddled the output for the user. This seemed to happen more on older/lower maximum quality videos. We also put "mp4" in a variable "DESIRED_FMT" with the intention of making this a parameter the user can set. However, we're now moving into "just read the params for the script" territory
2024-08-19Clarify and fix printing of error message on missing argsSteph Enders
The variable wasn't wrapped in quotes in echo and reversing the lines made things much more clear
2024-08-19Create basic script to download "best" format of YT videoSteph Enders
Known quirks: if the best two formats are mp4 the FMT_LINE will have 2 lines in it; it currently assumes the top two are webm and mp4, but this is a quick fix I'll likely do in a later commit. (just swap the grep and tail -n 1) We just force m4a as the audio but this may not be optimal; you can get the audio formats and merging the two best may be the best situation especailly for audio focused things like a music video or something.