Created
August 3, 2017 16:11
-
-
Save kueller/efbd0e2abd2add54fbcac6680f4716dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# User info | |
SCREENSHOT_DIR=/home/kueller/videos/screenshots/ | |
COOKIES=/home/kueller/cookies.txt | |
TITLE="$(youtube-dl --cookies $COOKIES --get-title $1)" | |
TITLE="${TITLE//\//-}" | |
SERIES="$(echo "${TITLE% Episode*}")" | |
SERIES_DIR="$SCREENSHOT_DIR""$SERIES"/ | |
SHOT=%X{$SERIES_DIR}shot_"$TITLE"_%n | |
mkdir -p "$SERIES_DIR" | |
mpv --ytdl-raw-options=cookies=$COOKIES \ | |
--screenshot-template="$SHOT" --slang=enUS $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment