Skip to content

Commit

Permalink
v26
Browse files Browse the repository at this point in the history
  • Loading branch information
stooged committed Jan 12, 2022
1 parent 64f06cb commit c0a16b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 1 addition & 3 deletions psDLC/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ void GotDlcList(object sender, PDL e)

for (int i = 1; i < Spl1.Length; i++)
{

if (Spl1[i].Contains("\"top_category\":\"add_on\"") || Spl1[i].Contains("\"top_category\":\"avatar\"") || Spl1[i].Contains("\"top_category\":\"theme\"") || Spl1[i].Contains("\"top_category\":\"game_content\""))
if (Spl1[i].Contains("\"top_category\":\"add_on\"") || Spl1[i].Contains("\"top_category\":\"avatar\"") || Spl1[i].Contains("\"top_category\":\"theme\"") || Spl1[i].Contains("\"top_category\":\"game_content\""))
{

Spl3 = Regex.Split(Spl1[i], ",\"name\":\"");
Expand Down Expand Up @@ -391,7 +390,6 @@ void GotSearch(object sender, PDL e)

for (int i = 1; i < Spl1.Length; i++)
{

if (Spl1[i].Contains("\"top_category\":\"downloadable_game\""))
{
Spl3 = Regex.Split(Spl1[i], "\"short_name\":\"");
Expand Down
12 changes: 6 additions & 6 deletions psDLC/PDL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ public void GetDlcList(string TitleID, string Region, bool tryV2 = false )
}
catch (Exception)
{
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/titlecontainer/GB/en/999/" + TitleID));
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/titlecontainer/GB/en/999/" + TitleID + "?size=999"));
return;
}
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/titlecontainer/US/en/999/" + TitleID));
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/titlecontainer/US/en/999/" + TitleID + "?size=999"));
}
else
{
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/titlecontainer/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + TitleID));
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/titlecontainer/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + TitleID + "?size=999"));
}
}
else if (TitleID.ToLower().StartsWith("up") || TitleID.ToLower().StartsWith("ep"))
{
oWeb.Headers.Add("Accept", "application/json");
oWeb.Headers.Add("Referer", "https://store.playstation.com/");
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/container/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + TitleID));
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/container/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + TitleID + "?size=999"));
}
}

Expand Down Expand Up @@ -137,7 +137,7 @@ public void GetDlcInfo(string Region, string contentID)
oWeb.Headers.Add("Accept", "application/json");
oWeb.Headers.Add("Accept-Language", "en-US");
oWeb.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64)");
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/container/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + contentID));
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/container/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + contentID + "?size=999"));
}


Expand All @@ -163,7 +163,7 @@ public void GetSearch(string strQry, string Region)
oWeb.Headers.Add("Accept", "application/json");
oWeb.Headers.Add("Accept-Language", "en-US");
oWeb.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64)");
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/search/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + HttpUtility.UrlEncode(strQry)));
oWeb.DownloadStringAsync(new Uri("https://store.playstation.com/store/api/chihiro/00_09_000/search/" + Region.Substring(3, 2).ToUpper() + "/" + Region.Substring(0, 2) + "/999/" + HttpUtility.UrlEncode(strQry) + "?size=999"));
}


Expand Down
3 changes: 0 additions & 3 deletions psDLC/app.config

This file was deleted.

1 change: 0 additions & 1 deletion psDLC/psDLC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down

0 comments on commit c0a16b9

Please sign in to comment.