Revision: 3529
Author: grepper
Date: Wed Feb 11 16:08:18 2015 UTC
Log: Fix for older 'file' commands
Some older versions of 'file' return octet-stream
for some videos.
To be more sure, use both -biL and -bL in
is_video function.
https://code.google.com/p/tovid/source/detail?r=3529
Modified:
/trunk/tovid/src/todisc
=======================================
--- /trunk/tovid/src/todisc Wed Feb 11 10:12:47 2015 UTC
+++ /trunk/tovid/src/todisc Wed Feb 11 16:08:18 2015 UTC
@@ -701,7 +701,7 @@
is_video()
{
-file -biL "$1" |grep -qw video || return 1
+ { file -biL "$1" |grep -qw video; } || { file -bL "$1" | grep -qw
video; }
}
check_filetype()