aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/ApplicationHost.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-17 01:38:13 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-17 01:38:13 -0400
commitcd1f09716713179e0be4124e73d84d7de6ba1bf5 (patch)
tree584468d982102238489a29abcca3129e769dadc9 /MediaBrowser.ServerApplication/ApplicationHost.cs
parente2219020883bc36d9a8ba152db1b25b639ec3b45 (diff)
re-enable chromecast
Diffstat (limited to 'MediaBrowser.ServerApplication/ApplicationHost.cs')
-rw-r--r--MediaBrowser.ServerApplication/ApplicationHost.cs128
1 files changed, 2 insertions, 126 deletions
diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs
index 9f9cd8e75..39a7981b2 100644
--- a/MediaBrowser.ServerApplication/ApplicationHost.cs
+++ b/MediaBrowser.ServerApplication/ApplicationHost.cs
@@ -1,4 +1,5 @@
-using MediaBrowser.Api;
+using System.Net;
+using MediaBrowser.Api;
using MediaBrowser.Common;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Events;
@@ -310,20 +311,6 @@ namespace MediaBrowser.ServerApplication
saveConfig = true;
}
- if (ServerConfigurationManager.Configuration.ChapterOptions != null)
- {
- ServerConfigurationManager.SaveConfiguration("chapters", ServerConfigurationManager.Configuration.ChapterOptions);
- ServerConfigurationManager.Configuration.ChapterOptions = null;
- saveConfig = true;
- }
-
- if (ServerConfigurationManager.Configuration.ChannelOptions != null)
- {
- ServerConfigurationManager.SaveConfiguration("channels", ServerConfigurationManager.Configuration.ChannelOptions);
- ServerConfigurationManager.Configuration.ChannelOptions = null;
- saveConfig = true;
- }
-
if (ServerConfigurationManager.Configuration.NotificationOptions != null)
{
ServerConfigurationManager.SaveConfiguration("notifications", ServerConfigurationManager.Configuration.NotificationOptions);
@@ -385,117 +372,6 @@ namespace MediaBrowser.ServerApplication
{
// Not there, no big deal
}
-
- Task.Run(() =>
- {
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "remote-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "chapter-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "extracted-video-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "extracted-audio-images"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "tmdb-tv"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "tmdb-collections"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "tmdb-movies"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "fanart-movies"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "fanart-music"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "fanart-tv"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "tmdb-people"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
-
- try
- {
- Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "tvdb-v3"), true);
- }
- catch (IOException)
- {
- // Not there, no big deal
- }
- });
}
private void MigrateUserFolders()