[tracker-miners/wip/carlosg/games] tracker-extract: Add rules for games/executables
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/games] tracker-extract: Add rules for games/executables
- Date: Thu, 18 Jun 2020 13:50:40 +0000 (UTC)
commit 0b2cef11c3b8bdee3ed296f866e9602551d94441
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 18 15:47:11 2020 +0200
tracker-extract: Add rules for games/executables
Or those that we can recognize easily from the mimetype ATM. These
all go to the tracker:Software graph.
This leaves out other games like those stored in bin/cue pairs,
those will need specific extractors, not covered here.
src/tracker-extract/15-executable.rule | 4 ++++
src/tracker-extract/15-games.rule | 4 ++++
src/tracker-extract/meson.build | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/15-executable.rule b/src/tracker-extract/15-executable.rule
new file mode 100644
index 000000000..ab8601e97
--- /dev/null
+++ b/src/tracker-extract/15-executable.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+MimeTypes=application/x-ms-dos-executable;
+FallbackRdfTypes=nfo:Executable;nfo:SoftwareApplication;
+Graph=tracker:Software
diff --git a/src/tracker-extract/15-games.rule b/src/tracker-extract/15-games.rule
new file mode 100644
index 000000000..74a528ffb
--- /dev/null
+++ b/src/tracker-extract/15-games.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+MimeTypes=application/vnd.nintendo.snes.rom;application/x-amiga-disk-format;application/x-atari-2600-rom;application/x-atari-7800-rom;application/x-atari-lynx-rom;application/x-dc-rom;application/x-doom-wad;application/x-fds-disk;application/x-gameboy-color-rom;application/x-gameboy-rom;application/x-gamecube-rom;application/x-gamegear-rom;application/x-gba-rom;application/x-genesis-32x-rom;application/x-genesis-rom;application/x-n64-rom;application/x-neo-geo-pocket-color-rom;application/x-neo-geo-pocket-rom;application/x-nes-rom;application/x-nintendo-ds-rom;application/x-pc-engine-rom;application/x-saturn-rom;application/x-sega-cd-rom;application/x-sega-pico-rom;application/x-sg1000-rom;application/x-sms-rom;application/x-virtual-boy-rom;application/x-wii-rom;application/x-wii-wad;application/x-wonderswan-color-rom;application/x-wonderswan-rom;application/x-msx-rom;
+FallbackRdfTypes=tracker:Game;
+Graph=tracker:Software
diff --git a/src/tracker-extract/meson.build b/src/tracker-extract/meson.build
index b661654b0..36e79c41a 100644
--- a/src/tracker-extract/meson.build
+++ b/src/tracker-extract/meson.build
@@ -7,7 +7,7 @@
modules = [
['extract-bmp', 'tracker-extract-bmp.c', ['10-bmp.rule'], [tracker_miners_common_dep]],
['extract-desktop', 'tracker-extract-desktop.c', ['10-desktop.rule'], [tracker_miners_common_dep]],
- ['extract-dummy', 'tracker-extract-dummy.c', ['10-comics.rule', '10-ebooks.rule'],
[tracker_miners_common_dep]]
+ ['extract-dummy', 'tracker-extract-dummy.c', ['10-comics.rule', '10-ebooks.rule', '15-games.rule',
'15-executable.rule'], [tracker_miners_common_dep]]
]
if get_option('abiword')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]