After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795275 - Many mimetypes are missing from TheGamesDB plugin
Many mimetypes are missing from TheGamesDB plugin
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: plugins
unspecified
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2018-04-15 14:43 UTC by Alexander Mikhaylenko
Modified: 2018-04-24 13:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
thegamesdb: Add Atari Lynx support (1.17 KB, patch)
2018-04-15 14:44 UTC, Alexander Mikhaylenko
accepted-commit_now Details | Review
thegamesdb: Add Famicom Disk System support (1.17 KB, patch)
2018-04-15 14:44 UTC, Alexander Mikhaylenko
accepted-commit_now Details | Review
thegamesdb: Add WonderSwan support (1020 bytes, patch)
2018-04-15 14:44 UTC, Alexander Mikhaylenko
accepted-commit_now Details | Review
thegamesdb: Add WonderSwan Color support (1.02 KB, patch)
2018-04-15 14:44 UTC, Alexander Mikhaylenko
reviewed Details | Review
thegamesdb: Add Neo-Geo Pocket Color support (1.21 KB, patch)
2018-04-15 14:44 UTC, Alexander Mikhaylenko
none Details | Review
thegamesdb: Add TurboGrafx-CD support (1.32 KB, patch)
2018-04-15 14:45 UTC, Alexander Mikhaylenko
none Details | Review
thegamesdb: Add WonderSwan and WonderSwan Color support (1.15 KB, patch)
2018-04-17 12:24 UTC, Alexander Mikhaylenko
accepted-commit_now Details | Review
thegamesdb: Add Neo-Geo Pocket Color support (1.28 KB, patch)
2018-04-17 12:24 UTC, Alexander Mikhaylenko
accepted-commit_now Details | Review
thegamesdb: Add TurboGrafx-CD support (1.42 KB, patch)
2018-04-17 12:24 UTC, Alexander Mikhaylenko
needs-work Details | Review
thegamesdb: Add TurboGrafx-CD support (2.04 KB, patch)
2018-04-17 15:18 UTC, Alexander Mikhaylenko
accepted-commit_now Details | Review

Description Alexander Mikhaylenko 2018-04-15 14:43:41 UTC
The following MIME types that gnome-games supports are missing from the plugin:

* application/x-atari-lynx-rom
* application/x-fds-disk
* application/x-wonderswan-rom
* application/x-wonderswan-color-rom

Additionally, TheGamesDB has separate platforms for Neo-Geo Pocket and Neo-Geo Pocket Color, and also PC Engine/TurboGrafx-16 and PC Engine/TurboGrafx-CD.

Neo-Geo Pocket Color support depends on https://bugzilla.freedesktop.org/show_bug.cgi?id=106055

Since TurboGrafx-CD games are just generic CD images, there isn't a registered MIME type for them, similar to PlayStation: https://bugzilla.gnome.org/show_bug.cgi?id=769347
Comment 1 Alexander Mikhaylenko 2018-04-15 14:44:30 UTC
Created attachment 370956 [details] [review]
thegamesdb: Add Atari Lynx support

Add Atari Lynx support via the 'application/x-atari-lynx-rom' MIME type.
Comment 2 Alexander Mikhaylenko 2018-04-15 14:44:36 UTC
Created attachment 370957 [details] [review]
thegamesdb: Add Famicom Disk System support

Add FDS support via the 'application/x-fds-disk' MIME type.
Comment 3 Alexander Mikhaylenko 2018-04-15 14:44:43 UTC
Created attachment 370958 [details] [review]
thegamesdb: Add WonderSwan support

Add WonderSwan support via the 'application/x-wonderswan-rom' MIME type.
Comment 4 Alexander Mikhaylenko 2018-04-15 14:44:50 UTC
Created attachment 370959 [details] [review]
thegamesdb: Add WonderSwan Color support

Add WonderSwan Color support via the
'application/x-wonderswan-color-rom' MIME type.
Comment 5 Alexander Mikhaylenko 2018-04-15 14:44:56 UTC
Created attachment 370960 [details] [review]
thegamesdb: Add Neo-Geo Pocket Color support

Add NGPC support via the 'application/x-neo-geo-pocket-color-rom' MIME
type.
Comment 6 Alexander Mikhaylenko 2018-04-15 14:45:03 UTC
Created attachment 370961 [details] [review]
thegamesdb: Add TurboGrafx-CD support

Add TurboGrafx-CD support via the unregistered
'application/x-pc-engine-cd-rom' MIME type as none is registered for
TurboGrafx-CD discs.
Comment 8 Bastien Nocera 2018-04-17 08:47:27 UTC
Review of attachment 370956 [details] [review]:

Looks good.
Comment 9 Bastien Nocera 2018-04-17 08:48:12 UTC
Review of attachment 370957 [details] [review]:

Sure.
Comment 10 Bastien Nocera 2018-04-17 08:48:57 UTC
Review of attachment 370958 [details] [review]:

You can merge this with the WonderSwan color support.
Comment 11 Bastien Nocera 2018-04-17 08:49:30 UTC
Review of attachment 370959 [details] [review]:

Merge this into the WonderSwan commit.
Comment 12 Bastien Nocera 2018-04-17 08:50:46 UTC
Review of attachment 370960 [details] [review]:

This mime-type doesn't exist upstream. Please add a reference to https://bugs.freedesktop.org/show_bug.cgi?id=106055 in the commit message

> Add NGPC

You can write it in full...
Comment 13 Bastien Nocera 2018-04-17 08:54:44 UTC
Review of attachment 370961 [details] [review]:

::: src/lua-factory/sources/grl-thegamesdb.lua
@@ +226,3 @@
     platform_names['application/x-pc-engine-rom'] = 'TurboGrafx 16'
+    -- 'application/x-pc-engine-cd-rom' is an unregistered MIME type
+    platform_names['application/x-pc-engine-cd-rom'] = 'TurboGrafx CD'

At this point, we might want to move all those "unregistered mime-types" to a separate section, so that optical disc formats that can't be detected through magic are all together.
Comment 14 Bastien Nocera 2018-04-17 08:55:18 UTC
Can you also add support for the Sega CD? :)
Comment 15 Alexander Mikhaylenko 2018-04-17 12:24:43 UTC
Created attachment 371035 [details] [review]
thegamesdb: Add WonderSwan and WonderSwan Color support

Add WonderSwan and WonderSwan Color support via
'application/x-wonderswan-rom' and `application/x-wonderswan-color-rom'
MIME types.
Comment 16 Alexander Mikhaylenko 2018-04-17 12:24:50 UTC
Created attachment 371036 [details] [review]
thegamesdb: Add Neo-Geo Pocket Color support

Add Neo-Geo Pocket Color support via the
'application/x-neo-geo-pocket-color-rom' MIME type:
https://bugs.freedesktop.org/show_bug.cgi?id=106055
Comment 17 Alexander Mikhaylenko 2018-04-17 12:24:58 UTC
Created attachment 371037 [details] [review]
thegamesdb: Add TurboGrafx-CD support

Add TurboGrafx-CD support via the unregistered
'application/x-pc-engine-cd-rom' MIME type as none is registered for
TurboGrafx-CD discs, similar to PlayStation games.

Also move both TurboGrafx-CD and PlayStation to a separate section.
Comment 18 Alexander Mikhaylenko 2018-04-17 12:27:40 UTC
(In reply to Bastien Nocera from comment #14)
> Can you also add support for the Sega CD? :)

Sega CD is already there. It is detected via libmagic.
Comment 19 Alexander Mikhaylenko 2018-04-17 12:29:03 UTC
(In reply to Bastien Nocera from comment #12)
> Review of attachment 370960 [details] [review] [review]:
> 
> This mime-type doesn't exist upstream. Please add a reference to
> https://bugs.freedesktop.org/show_bug.cgi?id=106055 in the commit message
> 

I'm not sure about the wording here, so I've just appended a link for now. :/
Comment 20 Bastien Nocera 2018-04-17 15:15:41 UTC
Review of attachment 371035 [details] [review]:

Looks good.
Comment 21 Bastien Nocera 2018-04-17 15:15:59 UTC
Review of attachment 371036 [details] [review]:

Yes.
Comment 22 Alexander Mikhaylenko 2018-04-17 15:18:17 UTC
Created attachment 371054 [details] [review]
thegamesdb: Add TurboGrafx-CD support

Add TurboGrafx-CD support via the unregistered
'application/x-pc-engine-cd-rom' MIME type as none is registered for
TurboGrafx-CD discs, similar to PlayStation games.

Also move both TurboGrafx-CD and PlayStation to a separate section.
Comment 23 Bastien Nocera 2018-04-17 15:18:18 UTC
Review of attachment 371037 [details] [review]:

::: src/lua-factory/sources/grl-thegamesdb.lua
@@ +225,3 @@
     platform_names['application/x-nintendo-ds-rom'] = 'Nintendo DS'
     platform_names['application/x-pc-engine-rom'] = 'TurboGrafx 16'
+    -- 'application/x-pc-engine-cd-rom' is an unregistered MIME type

No, I would have wanted the unregistered "optical disc images" formats to be move below this, and add a linefeed, something like:
--- a/src/lua-factory/sources/grl-thegamesdb.lua
+++ b/src/lua-factory/sources/grl-thegamesdb.lua
@@ -217,8 +217,6 @@ function get_platform_name(mime_type, suffix)
     platform_names['application/x-nes-rom'] = 'Nintendo Entertainment System (NES)'
     platform_names['application/x-nintendo-ds-rom'] = 'Nintendo DS'
     platform_names['application/x-pc-engine-rom'] = 'TurboGrafx 16'
-    -- 'application/x-playstation-rom' is an unregistered MIME type
-    platform_names['application/x-playstation-rom'] = 'Sony Playstation'
     platform_names['application/x-saturn-rom'] = 'Sega Saturn'
     platform_names['application/x-sega-cd-rom'] = 'Sega CD'
     -- Also represents 'Sega Game Gear' through magic
@@ -227,6 +225,10 @@ function get_platform_name(mime_type, suffix)
     platform_names['application/x-wii-rom'] = 'Nintendo Wii'
     platform_names['application/x-wii-wad'] = 'Nintendo Wii'
 
+    -- unregistered MIME types for optical disc formats
+    platform_names['application/x-playstation-rom'] = 'Sony Playstation'
+    platform_names['application/x-pc-engine-cd-rom'] = 'TurboGrafx CD'
+
     -- For disambiguation
     if suffix and
        suffix ~= 'bin' and
Comment 24 Bastien Nocera 2018-04-17 15:19:05 UTC
Review of attachment 371054 [details] [review]:

That's the one ;)
Comment 25 Bastien Nocera 2018-04-24 13:15:57 UTC
commit 6e8a504228178f8e094857f9542771f6bb40efb9
Author: Exalm <exalm7659@gmail.com>
Date:   Sun Apr 15 19:22:10 2018 +0500

    thegamesdb: Add TurboGrafx-CD support
    
    Add TurboGrafx-CD support via the unregistered
    'application/x-pc-engine-cd-rom' MIME type as none is registered for
    TurboGrafx-CD discs, similar to PlayStation games.
    
    Also move both TurboGrafx-CD and PlayStation to a separate section.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=795275

commit 132f6c4af8ac945795520f239d7290c8fd899caa
Author: Exalm <exalm7659@gmail.com>
Date:   Sun Apr 15 19:20:19 2018 +0500

    thegamesdb: Add Neo-Geo Pocket Color support
    
    Add Neo-Geo Pocket Color support via the
    'application/x-neo-geo-pocket-color-rom' MIME type:
    https://bugs.freedesktop.org/show_bug.cgi?id=106055
    
    https://bugzilla.gnome.org/show_bug.cgi?id=795275

commit f8b9bad19d522c2f8cd25bb3e56a02f348d26fa3
Author: Exalm <exalm7659@gmail.com>
Date:   Sun Apr 15 19:18:17 2018 +0500

    thegamesdb: Add WonderSwan and WonderSwan Color support
    
    Add WonderSwan and WonderSwan Color support via
    'application/x-wonderswan-rom' and `application/x-wonderswan-color-rom'
    MIME types.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=795275

commit c066a6a8451e610ab0f42701f8adba4fc9d84729
Author: Exalm <exalm7659@gmail.com>
Date:   Sun Apr 15 19:13:18 2018 +0500

    thegamesdb: Add Famicom Disk System support
    
    Add FDS support via the 'application/x-fds-disk' MIME type.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=795275

commit caeb5dc7b5b68e91afd4ae7146a01944e34c37be
Author: Exalm <exalm7659@gmail.com>
Date:   Sun Apr 15 19:12:05 2018 +0500

    thegamesdb: Add Atari Lynx support
    
    Add Atari Lynx support via the 'application/x-atari-lynx-rom' MIME type.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=795275