Adds / tweaks a bunch of scripts
This commit is contained in:
parent
887f479d1f
commit
285165913d
13 changed files with 112 additions and 30 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
shopt -s nullglob
|
||||
let playlist_duration_ms=0
|
||||
for song_file in *.{mp3,ogg,m4a,flac,wav}; do
|
||||
for song_file in */*.{mp3,ogg,m4a,flac,wav}; do
|
||||
playlist_duration_ms=$(expr $playlist_duration_ms + $(mediainfo --Inform="Audio;%Duration%" "$song_file"))
|
||||
done
|
||||
shopt -u nullglob
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue