summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-01-09 16:05:48 +0000
committerBastien Nocera <hadess@hadess.net>2012-01-09 16:05:48 +0000
commit84abb89c05decd1ac6d1c66caa2f2419b0468f26 (patch)
tree35aaa6e6acbbef34591ccdee59985ff482e5c97d
parent5bc13ffaef183e0711b82fce163d3c7e882d36ba (diff)
downloadshared-mime-info-84abb89c05decd1ac6d1c66caa2f2419b0468f26.tar.gz
Add support for detecting DVDs without VIDEO_TS dirs
As libdvdread accepts that crap, we should detect it as such. https://bugzilla.gnome.org/show_bug.cgi?id=667469
-rw-r--r--freedesktop.org.xml.in2
-rw-r--r--tests/tree-list1
-rw-r--r--tests/video-dvd-3/VIDEO_TS.IFO0
3 files changed, 3 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 7888cd2a..db0332bd 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -5734,6 +5734,8 @@ command to generate the output files.
<treemagic>
<treematch path="VIDEO_TS/VIDEO_TS.IFO" type="file" />
<treematch path="VIDEO_TS/VIDEO_TS.IFO;1" type="file" />
+ <treematch path="VIDEO_TS.IFO" type="file" />
+ <treematch path="VIDEO_TS.IFO;1" type="file" />
</treemagic>
</mime-type>
diff --git a/tests/tree-list b/tests/tree-list
index c87464a8..bde9556b 100644
--- a/tests/tree-list
+++ b/tests/tree-list
@@ -4,6 +4,7 @@ tests/video-vcd x-content/video-vcd
tests/video-svcd x-content/video-svcd
tests/video-dvd x-content/video-dvd x-content/audio-dvd
tests/video-dvd-2 x-content/video-dvd x-content/audio-dvd
+tests/video-dvd-3 x-content/video-dvd x-content/audio-dvd
tests/video-bluray x-content/video-bluray
tests/video-hddvd x-content/video-hddvd
tests/image-picturecd x-content/image-picturecd
diff --git a/tests/video-dvd-3/VIDEO_TS.IFO b/tests/video-dvd-3/VIDEO_TS.IFO
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tests/video-dvd-3/VIDEO_TS.IFO