nut
nut copied to clipboard
[Feature] add new filters
To compliment #248 , new filters could be added.
Below is an example of the json data available to be leveraged for a filter. But what jumps out is adding: languages, rating, number of players, ratingContent, and category. Maybe a search filter to search name, intro, and description though I am not sure how useful that would be.
To add a new filter, you: a) add a new property for it to Config.Download: https://github.com/blawar/nut/blob/master/nut/Config.py#L699 b) add a line somewhere in Config.load to parse and load the json value: https://github.com/blawar/nut/blob/master/nut/Config.py#L445 c) Then apply the filter in Title.isActive: https://github.com/blawar/nut/blob/master/nut/Title.py#L552
"0100000000010000": {
"id": "0100000000010000",
"rightsId": "01000000000100000000000000000003",
"name": "Super Mario Odyssey\u2122",
"version": null,
"key": null,
"isDemo": false,
"region": "US",
"regions": [
"AR",
"CL",
"PE",
"KR",
"HK",
"NZ",
"AT",
"BE",
"CZ",
"DK",
"ES",
"FI",
"HU",
"NL",
"PL",
"RU",
"ZA",
"MX",
"CA",
"FR",
"DE",
"JP",
"AU",
"GB",
"US",
"CO"
],
"releaseDate": 20171027,
"nsuId": 70010000001130,
"category": [
"Platformer",
"Action"
],
"ratingContent": [
"Cartoon Violence",
"Comic Mischief"
],
"numberOfPlayers": 2,
"rating": 10,
"developer": null,
"publisher": "Nintendo",
"frontBoxArt": null,
"iconUrl": "https://img-eshop.cdn.nintendo.net/i/ad4d31f664a1ce704f0219da2805f8459595bc3c01c3f04df2e32ba34a05b8c6.jpg",
"screenshots": [
"https://img-eshop.cdn.nintendo.net/i/c497547957d9dd3668e891aa97ff4899a3f40bd1bd430020f8cbdf673f02bdeb.jpg",
"https://img-eshop.cdn.nintendo.net/i/1839d571921e3fb19ef48da64c145cb8ce573b07d7390c6350f15291b3905048.jpg",
"https://img-eshop.cdn.nintendo.net/i/d0510e4804381287c64dc3ab374ae9273419e263e9a732e72af3b39cd70f2b5f.jpg",
"https://img-eshop.cdn.nintendo.net/i/ab713d841b0f0d9bbce38b589d75dd3bba2aef005418e59d3f0fd95389ae7016.jpg",
"https://img-eshop.cdn.nintendo.net/i/abcf9708cc28ef5b7ab412aa17fafe4ad181f0b957456ffd9b83de2561d9f62a.jpg",
"https://img-eshop.cdn.nintendo.net/i/7db70ecd883f94d935f65b9f4454b8151b6f8be7c4be95543e87488e48e5a6b9.jpg"
],
"bannerUrl": "https://img-eshop.cdn.nintendo.net/i/c42553b4fd0312c31e70ec7468c6c9bccd739f340152925b9600631f2d29f8b5.jpg",
"intro": "Embark on a cap-tivating, globe-trotting adventure",
"description": "Explore incredible places far from the Mushroom Kingdom as you join Mario and his new ally Cappy on a massive, globe-trotting 3D adventure. Use amazing new abilities\u2014like the power to capture and control objects, animals, and enemies\u2014to collect Power Moons so you can power up the Odyssey airship and save Princess Peach from Bowser\u2019s wedding plans!\n\nThanks to heroic, hat-shaped Cappy, Mario\u2019s got new moves that\u2019ll make you rethink his traditional run-and-jump gameplay\u2014like cap jump, cap throw, and capture. Use captured cohorts such as enemies, objects, and animals to progress through the game and uncover loads of hidden collectibles. And if you feel like playing with a friend, just pass them a Joy-Con\u2122 controller! Player 1 controls Mario while Player 2 controls Cappy. This sandbox-style 3D Mario adventure\u2014the first since 1996\u2019s beloved Super Mario 64\u2122 and 2002\u2019s Nintendo GameCube\u2122 classic Super Mario Sunshine\u2122\u2014is packed with secrets and surprises, plus exciting new kingdoms to explore.",
"languages": [
"ja",
"en",
"es",
"fr",
"de",
"it",
"nl",
"ru",
"zh",
"zh"
],
"size": 6026166272,
"rank": 4,
"language": "en"
},