add translation, fix small bugs

This commit is contained in:
2024-10-23 17:49:23 +03:00
parent 47a09ccd2e
commit 02aabfdf4c
7 changed files with 64 additions and 16 deletions
+3 -3
View File
@@ -103,7 +103,7 @@ namespace TV_Player
}
}
public static async Task<ProgramGuide> ParseEpg(string channelId)
public static async Task<ProgramGuide> ParseEpg(string groupName, string channelId)
{
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreWhitespace = true;
@@ -112,9 +112,9 @@ namespace TV_Player
settings.Async = true;
ProgramGuide channel = null;
var fileName = "guide.xml";
var fileName = groupName+"_guide.xml";
string programDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
string filePath = Path.Combine(programDataPath, "TV_Player", fileName);
string filePath = Path.Combine(programDataPath, "TVPlayer", fileName);
using (XmlReader reader = XmlReader.Create(filePath, settings))
{