kinnay / NintendoClients

Python package to communicate with Switch, Wii U and 3DS servers
MIT License
547 stars 66 forks source link

Using `search_objects` to make a refined search of smm2 levels #71

Closed TheGreatRambler closed 2 years ago

TheGreatRambler commented 2 years ago

I have been trying to implement as many functions as possible that return CourseInfo, but one method in particular seems like a good candidate for more specific searches. search_objects looks promising, but it returns a list of DataStoreMetaInfo which don't have any associated types. I'm wondering if I can change data_type in DataStoreSearchParam to some constant that maps to levels and then convert the resulting meta_binary in DataStoreMetaInfo to CourseInfo and if not whether a similar method can be put to use to get very particular searches.