Fix migration breaking the install

This commit is contained in:
WhatFox 2015-11-10 21:25:01 +00:00
parent bd672a36df
commit 73ea3d899d
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ namespace Jackett.Services
var oldDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Jackett");
if (Directory.Exists(oldDir))
{
foreach (var file in Directory.GetFiles(oldDir, "*", SearchOption.AllDirectories))
foreach (var file in Directory.GetFiles(oldDir, "*.json", SearchOption.AllDirectories))
{
var path = file.Replace(oldDir, "");
var destPath = GetAppDataFolder() + path;