forked from HPR/hpr-tools
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
24e36b945a | |||
dd97a672aa | |||
6f3c6c2596 |
@ -2,7 +2,14 @@
|
|||||||
# Copyright Ken Fallon - Released into the public domain. http://creativecommons.org/publicdomain/
|
# Copyright Ken Fallon - Released into the public domain. http://creativecommons.org/publicdomain/
|
||||||
#============================================================
|
#============================================================
|
||||||
|
|
||||||
find ${HOME}/processing/ -type f | egrep -v '/sponsor-anhonesthost.com-hpr15.flac|/outro.flac|/intro.flac|/sponsor-archive.org.flac' | while read mediafile
|
search_dir="${HOME}/processing/"
|
||||||
|
|
||||||
|
if [ -d "${1}" ]
|
||||||
|
then
|
||||||
|
search_dir="${1}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
find ${search_dir} -type f | grep -vP '/sponsor-anhonesthost.com-hpr15.flac|/outro.flac|/intro.flac|/sponsor-archive.org.flac' | while read mediafile
|
||||||
do
|
do
|
||||||
duration=$( mediainfo --full --Output=XML "${mediafile}" | xmlstarlet sel -T -t -m "_:MediaInfo/_:media/_:track[@type='Audio']/_:Duration[1]" -v "." -n - | awk -F '.' '{print $1}' )
|
duration=$( mediainfo --full --Output=XML "${mediafile}" | xmlstarlet sel -T -t -m "_:MediaInfo/_:media/_:track[@type='Audio']/_:Duration[1]" -v "." -n - | awk -F '.' '{print $1}' )
|
||||||
if [ "${duration}" != "" ]
|
if [ "${duration}" != "" ]
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user