llakssz / CIAngel

Download GOOD CIAs on your 3DS!
188 stars 18 forks source link

Nintendo blocking SEED requests for pre-release in some regions #107

Open DrakiaXYZ opened 8 years ago

DrakiaXYZ commented 8 years ago

Looks like with Kirby Robobot, if you request the SEED with the country set to US, you get a 404. Setting it to JP or GB gives the seed correctly.

May need to just loop through all of the country codes to see if we can get a key, instead of using the country of the 3DS we're running on.

penny64 commented 8 years ago

How did you change your region just to get the seed?

DrakiaXYZ commented 8 years ago

The seed servers just accept the region as a string (?country=US), I just did some testing while I was at work. I'll be working on a fix this weekend sometime to deal with this in the future though.

penny64 commented 8 years ago

Ah yeah, managed to download the seed manually after figuring out the URL. Thanks

Cruel commented 8 years ago

FWIW, my solution will probably be checking the pre_order or seed_published values from ninja and change region accordingly. But you can just as well try all country codes (ones that matter) to see if any work.

https://ninja.ctr.shop.nintendo.net/ninja/ws/US/title/50010000039739/ec_info

<eshop>
    <title_ec_info>
        <title_id>0004000000183600</title_id>
        <content_size>696400788</content_size>
        <title_version>16</title_version>
        <disable_download>false</disable_download>
        <pre_order>true</pre_order>
        <content_lock>
            <seed_published>false</seed_published>
            <playable_date>2016-06-10</playable_date>
        </content_lock>
    </title_ec_info>
</eshop>

https://ninja.ctr.shop.nintendo.net/ninja/ws/GB/title/50010000039739/ec_info

<eshop>
    <title_ec_info>
        <title_id>0004000000183600</title_id>
        <content_size>696400788</content_size>
        <title_version>16</title_version>
        <disable_download>false</disable_download>
        <content_lock>
            <seed_published>true</seed_published>
            <external_seed>50130fd650b7b2211af536d551f432e0</external_seed>
        </content_lock>
    </title_ec_info>
</eshop>