1
0
mirror of synced 2025-02-17 19:09:25 +01:00

Reapply some reverted changes

This commit is contained in:
0aubsq 2022-05-25 17:55:27 +02:00
parent 8f04433245
commit 67b2cabade

View File

@ -549,11 +549,11 @@ namespace TJAPlayer3
{
// Download zip from cdn
if (!System.IO.File.Exists(zipPath))
if (!File.Exists(zipPath))
{
System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile($"{dbCDNData.BaseUrl}{dbCDNData.Download["default"]}{song.Id}", zipPath);
wc.DownloadFile($"{dbCDNData.BaseUrl}{GetAssignedLanguageValue(dbCDNData.Download)}{song.Id}", zipPath);
wc.Dispose();
}
@ -561,10 +561,10 @@ namespace TJAPlayer3
C曲リストード downloadBox = null;
for (int i = 0; i < TJAPlayer3.Songs管理.list曲ルート.Count; i++)
{
if (TJAPlayer3.Songs管理.list曲ルート[i].strジャンル == "Download")
if (TJAPlayer3.Songs管理.list曲ルート[i].strジャンル == "Download"
&& TJAPlayer3.Songs管理.list曲ルート[i].eード種別 == C曲リストード.Eード種別.BOX)
{
downloadBox = TJAPlayer3.Songs管理.list曲ルート[i];
if (downloadBox.r親ード != null) downloadBox = downloadBox.r親ード;
}
}