diff options
-rw-r--r-- | win/C#/Functions/RssReader.cs | 2 | ||||
-rw-r--r-- | win/C#/Properties/Settings.Designer.cs | 12 | ||||
-rw-r--r-- | win/C#/Properties/Settings.settings | 3 | ||||
-rw-r--r-- | win/C#/app.config | 3 |
4 files changed, 19 insertions, 1 deletions
diff --git a/win/C#/Functions/RssReader.cs b/win/C#/Functions/RssReader.cs index 3d69a891f..a5643a301 100644 --- a/win/C#/Functions/RssReader.cs +++ b/win/C#/Functions/RssReader.cs @@ -28,7 +28,7 @@ namespace Handbrake.Functions private string readRss()
{
- rssReader = new XmlTextReader("http://handbrake.fr/appcast.xml");
+ rssReader = new XmlTextReader(Properties.Settings.Default.appcast);
rssDoc = new XmlDocument();
rssDoc.Load(rssReader);
diff --git a/win/C#/Properties/Settings.Designer.cs b/win/C#/Properties/Settings.Designer.cs index 77b250af7..623992303 100644 --- a/win/C#/Properties/Settings.Designer.cs +++ b/win/C#/Properties/Settings.Designer.cs @@ -166,5 +166,17 @@ namespace Handbrake.Properties { this["autoNamePath"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("http://handbrake.fr/appcast.xml")]
+ public string appcast {
+ get {
+ return ((string)(this["appcast"]));
+ }
+ set {
+ this["appcast"] = value;
+ }
+ }
}
}
diff --git a/win/C#/Properties/Settings.settings b/win/C#/Properties/Settings.settings index 45f50b8db..946b661fc 100644 --- a/win/C#/Properties/Settings.settings +++ b/win/C#/Properties/Settings.settings @@ -38,5 +38,8 @@ <Setting Name="autoNamePath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
+ <Setting Name="appcast" Type="System.String" Scope="User">
+ <Value Profile="(Default)">http://handbrake.fr/appcast.xml</Value>
+ </Setting>
</Settings>
</SettingsFile>
\ No newline at end of file diff --git a/win/C#/app.config b/win/C#/app.config index 091deef5b..dd553eea8 100644 --- a/win/C#/app.config +++ b/win/C#/app.config @@ -43,6 +43,9 @@ <setting name="autoNamePath" serializeAs="String">
<value />
</setting>
+ <setting name="appcast" serializeAs="String">
+ <value>http://handbrake.fr/appcast.xml</value>
+ </setting>
</Handbrake.Properties.Settings>
</userSettings>
</configuration>
\ No newline at end of file |