- LG GlobalClone: favorites are now saved to the file

This commit is contained in:
hbeham
2015-11-26 15:56:52 +01:00
parent 6774c61365
commit ddc570dfb2
8 changed files with 32 additions and 25 deletions

View File

@@ -373,6 +373,7 @@ namespace ChanSort.Loader.GlobalClone
if (ch == null) continue; // ignore proxy channels from reference lists
var nameBytes = Encoding.UTF8.GetBytes(ch.Name);
bool nameNeedsEncoding = nameBytes.Length != ch.Name.Length;
string mapType = "";
foreach (XmlNode node in ch.XmlNode.ChildNodes)
{
@@ -415,6 +416,13 @@ namespace ChanSort.Loader.GlobalClone
case "isUserSelCHNo":
node.InnerText = "1";
break;
case "mapType":
mapType = node.InnerText;
break;
case "mapAttr":
if (mapType == "1")
node.InnerText = ((int) ch.Favorites).ToString();
break;
}
}
}