[tovid] r3529 committed - Fix for older 'file' commands...

1 view
Skip to first unread message

to...@googlecode.com

unread,
Feb 11, 2015, 11:08:33 AM2/11/15
to tovi...@googlegroups.com
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()
Reply all
Reply to author
Forward
0 new messages