summaryrefslogtreecommitdiff
path: root/launch/shows
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:46:59 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:46:59 -0500
commit35a2dd3734f1d31060fe28837cf0e1d947c8d6f4 (patch)
tree5fcb17f0849b520417ac0f29b94879f3e359ef43 /launch/shows
parent3d3d79a57fb6d0a5728e0070475f05d1699f0818 (diff)
downloadscripts-35a2dd3734f1d31060fe28837cf0e1d947c8d6f4.tar.xz
scripts-35a2dd3734f1d31060fe28837cf0e1d947c8d6f4.zip
reorganize all scripts
Diffstat (limited to 'launch/shows')
-rwxr-xr-xlaunch/shows2
1 files changed, 1 insertions, 1 deletions
diff --git a/launch/shows b/launch/shows
index 2d964a7..a0cb8a6 100755
--- a/launch/shows
+++ b/launch/shows
@@ -18,7 +18,7 @@ case "$season" in
ep="$(find "$showsdir/$show" -type f | sort | sed 's/.* \([0-9]*\)\/\(.*\)\.mkv$/S\1E\2/' | dmenu $dmenucolors -p "Episode:")"
playvid "$showsdir/$show/$(echo "$ep" | sed 's/^S\([0-9]*\)E/Season \1\//').mkv"
;;
- $randep) playvid "$(find "$showsdir/$show" -type f | sort -R | head -1)" ;;
+ $randep) playvid "$(find "$showsdir/$show" -type f | shuf -n1)" ;;
*)
ep="$(ls "$showsdir/$show/$season" | sed 's/\.mkv$//' | dmenu $dmenucolors -p "Episode:")"
playvid "$showsdir/$show/$season/$ep.mkv"