Homebrew RELEASE NSP Indexer

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
753
Trophies
1
Age
43
XP
2,650
Country
Italy
on apache with php7 it produce
Code:
http://10.34.0.2/switch/data/games/MONSTER HUNTER RISE[0100B04011742800][US][v393216].nsp
http://10.34.0.2/switch/data/games/MONSTER HUNTER STORIES 2 WINGS OF RUIN[0100E21011446000][US][v0].nsp
http://10.34.0.2/switch/data/games/Monster Hunter Stories 2 Wings of Ruin[0100E21011446800][US][v131072].nsp
http://10.34.0.2/switch/data/games/New Super Mario Bros U Deluxe [0100EA80032EA000][v0].nsp

yes no url encoded. you need all url encoded or just filename?

--------------------- MERGED ---------------------------

@duckbill007
you prefer this way
Code:
http%3A%2F%2F10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMario%20Kart%208%20Deluxe%5B0100152000022800%5D%5BUS%5D%5Bv589824%5D.nsp
http%3A%2F%2F10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMONSTER%20HUNTER%20RISE%5B0100B04011742000%5D%5BUS%5D%5Bv0%5D.nsp
http%3A%2F%2F10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMONSTER%20HUNTER%20RISE%5B0100B04011742800%5D%5BUS%5D%5Bv393216%5D.nsp
http%3A%2F%2F10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMONSTER%20HUNTER%20STORIES%202%20WINGS%20OF%20RUIN%5B0100E21011446000%5D%5BUS%5D%5Bv0%5D.nsp
or this way
Code:
http://10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMario%20Kart%208%20Deluxe%5B0100152000022800%5D%5BUS%5D%5Bv589824%5D.nsp
http://10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMONSTER%20HUNTER%20RISE%5B0100B04011742000%5D%5BUS%5D%5Bv0%5D.nsp
http://10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMONSTER%20HUNTER%20RISE%5B0100B04011742800%5D%5BUS%5D%5Bv393216%5D.nsp
http://10.34.0.2%2Fswitch%2Fdata%2Fgames%2FMONSTER%20HUNTER%20STORIES%202%20WINGS%20OF%20RUIN%5B0100E21011446000%5D%5BUS%5D%5Bv0%5D.nsp
or
Code:
http://10.34.0.2/switch/data/games%2FMario%20Kart%208%20Deluxe%5B0100152000022800%5D%5BUS%5D%5Bv589824%5D.nsp
http://10.34.0.2/switch/data/games%2FMONSTER%20HUNTER%20RISE%5B0100B04011742000%5D%5BUS%5D%5Bv0%5D.nsp
http://10.34.0.2/switch/data/games%2FMONSTER%20HUNTER%20RISE%5B0100B04011742800%5D%5BUS%5D%5Bv393216%5D.nsp
http://10.34.0.2/switch/data/games%2FMONSTER%20HUNTER%20STORIES%202%20WINGS%20OF%20RUIN%5B0100E21011446000%5D%5BUS%5D%5Bv0%5D.nsp
 

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
674
Trophies
1
XP
2,417
Country
Russia
Urls should be valid. First two examples are not valid urls.

I am using Apache with php 5.3

--------------------- MERGED ---------------------------

Last example also not valid urls. Just open RFC3986 with url definition.
 

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
753
Trophies
1
Age
43
XP
2,650
Country
Italy
Code:
http://10.34.0.2/switch/data/games/MONSTER HUNTER RISE[0100B04011742800][US][v393216].nsp
http://10.34.0.2/switch/data/games/MONSTER HUNTER STORIES 2 WINGS OF RUIN[0100E21011446000][US][v0].nsp
http://10.34.0.2/switch/data/games/Monster Hunter Stories 2 Wings of Ruin[0100E21011446800][US][v131072].nsp
http://10.34.0.2/switch/data/games/New Super Mario Bros U Deluxe [0100EA80032EA000][v0].nsp

So this way, not encoded but valid

so you are looking for this way right?

Code:
http://10.34.0.2/switch/data/games/New%20Super%20Mario%20Bros%20U%20Deluxe%20[0100EA80032EA000][v0].nsp
 

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
753
Trophies
1
Age
43
XP
2,650
Country
Italy
Code:
http://10.34.0.2/switch/data/games/Super%20Mario%203D%20World%20%2B%20Bowser%27s%20Fury%20%5B010028600EBDA800%5D%5Bv65536%5D.nsp

should be ok now
 

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
753
Trophies
1
Age
43
XP
2,650
Country
Italy
commit done on github, can you check it on your side, it should also fix the missing http because probably the $_SERVER['REQUEST_SCHEME'] is not present in php5 using apache below 2.4
 
Last edited by proconsule54,

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
753
Trophies
1
Age
43
XP
2,650
Country
Italy
Awoo Installer net Install is under dev. If your webserver is on same network of switch (or you can reach port 2000 of switch) it should work.
Stay tuned!
 

Slluxx

GBATemp Mayor
Developer
Joined
Jul 17, 2019
Messages
604
Trophies
0
XP
2,121
Country
Germany
multiple suggestions:
  • use classes in php so your code is more organized.
  • remove the html code from your php file - if you need something from php, you can do javascript requests to get it.
  • you are using bootstrap - use its classes to make your page responsive and "viewable" from smaller devices too.
  • use other classes from bootstrap too for a just slightly more pleasant experience (shadows, margins and so on). With bootstrap you never really need to write your own css - there is probably already a class for it.
  • (advanced) use a framework like vueJS which will reduce your code and maximizes readability even more
  • looks like you are downloading the tinfoildb "database" json files each time the file is older than a day. that will probably cause problems if someone already fetched it, adds a new game that just released and tries to use your script then. Just download the DB once and only again if you can not find a titleid in it anymore. this will reduce network usage and reduce problems.
 
  • Like
Reactions: proconsule54

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
753
Trophies
1
Age
43
XP
2,650
Country
Italy
@Slluxx thanks for your suggestions.
Qualified suggestions are always welcome, me and @jangrewe are working on making code better, faster and more usable.
Some of this are already discussed between us and will be in master branch soon
Apart from this do you like our project?
 

Slluxx

GBATemp Mayor
Developer
Joined
Jul 17, 2019
Messages
604
Trophies
0
XP
2,121
Country
Germany
@Slluxx thanks for your suggestions.
Qualified suggestions are always welcome, me and @jangrewe are working on making code better, faster and more usable.
Some of this are already discussed between us and will be in master branch soon
Apart from this do you like our project?


i think its kinda unnessesary and i have not used it.
but others will use it so i looked at the code a few seconds to make suggestions how to improve
 

jangrewe

Member
Newcomer
Joined
Jul 23, 2021
Messages
9
Trophies
0
Age
42
XP
44
Country
Germany
@Slluxx thanks for the idea about refreshing the metadata not automatically. but besides that, some of your points are moot... you probably didn't notice that this uses a substantial amount of Bootstrap classes (yes, including .shadow-sm and margins), and that it does have a reponsive design that switches to a mobile-friendly layout?

But as it's unnecessary (for you, at least - probably because you don't see the potential), it shouldn't bother you anyways, right?
 
Last edited by jangrewe,

Slluxx

GBATemp Mayor
Developer
Joined
Jul 17, 2019
Messages
604
Trophies
0
XP
2,121
Country
Germany
@Slluxx thanks for the idea about refreshing the metadata not automatically. but besides that, some of your points are moot... you probably didn't notice that this uses a substantial amount of Bootstrap classes (yes, including .shadow-sm and margins), and that it does have a reponsive design that switches to a mobile-friendly layout?

But as it's unnecessary (for you, at least - probably because you don't see the potential), it shouldn't bother you anyways, right?

True i didnt check it. Looks decent.
Yet the responsive design suggestion is probably the least "important" out of all.
i wasnt making suggestions for it to become more stable or userfriendly but for you to go a little bit more into the direction of good practices. things you should avoid and do when programing. imo thats more important to teach than "hey you did this wrong". and you are right, i dont care about nspindexer. but maybe you take my suggestions seriously and your next piece of software will be a litle more clean, easier to write, maintain and easier to look at
 

jangrewe

Member
Newcomer
Joined
Jul 23, 2021
Messages
9
Trophies
0
Age
42
XP
44
Country
Germany
dude, i've started writing in PHP before you were even born. and that's the level with which i write fun projects like this. my goal is: get shit done, while keeping it reasonably readable for others (read: hobbyists). good thing you didn't look at it before i rewrote most of it (no offense, proconsule).
this is not the control software for a nuclear power plant, this is just a glorified directory listing... i'm not gonna throw Symfony and Vue at it, because i'd be writing more meta code than functional stuff, and that gets in the way of getting shit done.
again: small fun project, taken over 5 nights ago, no plans for world domination.
 

Slluxx

GBATemp Mayor
Developer
Joined
Jul 17, 2019
Messages
604
Trophies
0
XP
2,121
Country
Germany
dude, i've started writing in PHP before you were even born. and that's the level with which i write fun projects like this. my goal is: get shit done, while keeping it reasonably readable for others (read: hobbyists). good thing you didn't look at it before i rewrote most of it (no offense, proconsule).
this is not the control software for a nuclear power plant, this is just a glorified directory listing... i'm not gonna throw Symfony and Vue at it, because i'd be writing more meta code than functional stuff, and that gets in the way of getting shit done.
again: small fun project, taken over 5 nights ago, no plans for world domination.

lmao if you think so.
i mean you seem to have a pretty low standard if this is already a rework. i just gave you advice and if you dont want it thats okay.
but please spare me with that "i code longer than you" bullshit. you arent even wise enough to just say something like "i know its badi did it for fun in a spare night" or something like that. instead you go straight to this passive agressive " i am better than you even though my code is shit" alpha female shit.

If you post something in a forum you must be prepared for someone who tells you what you could do better.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: lol Syl