* add letter bar with no links * use lucene for search, add paged search results * add search index version * index library_name; rebuild index when folder is missing * maintain index as local movies change * fix tests * maintain index as local shows change * maintain index as plex movies change * maintain index as plex shows change * code cleanup * add duplicate filter to search * add links to letter bar * code cleanup
33 lines
1.5 KiB
C#
33 lines
1.5 KiB
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace ErsatzTV.Core
|
|
{
|
|
public static class FileSystemLayout
|
|
{
|
|
public static readonly string AppDataFolder = Path.Combine(
|
|
Environment.GetFolderPath(
|
|
Environment.SpecialFolder.LocalApplicationData,
|
|
Environment.SpecialFolderOption.Create),
|
|
"ersatztv");
|
|
|
|
public static readonly string DatabasePath = Path.Combine(AppDataFolder, "ersatztv.sqlite3");
|
|
|
|
public static readonly string LogDatabasePath = Path.Combine(AppDataFolder, "logs.sqlite3");
|
|
|
|
public static readonly string LegacyImageCacheFolder = Path.Combine(AppDataFolder, "cache", "images");
|
|
|
|
public static readonly string PlexSecretsPath = Path.Combine(AppDataFolder, "plex-secrets.json");
|
|
|
|
public static readonly string FFmpegReportsFolder = Path.Combine(AppDataFolder, "ffmpeg-reports");
|
|
public static readonly string SearchIndexFolder = Path.Combine(AppDataFolder, "search-index");
|
|
|
|
public static readonly string ArtworkCacheFolder = Path.Combine(AppDataFolder, "cache", "artwork");
|
|
|
|
public static readonly string PosterCacheFolder = Path.Combine(ArtworkCacheFolder, "posters");
|
|
public static readonly string ThumbnailCacheFolder = Path.Combine(ArtworkCacheFolder, "thumbnails");
|
|
public static readonly string LogoCacheFolder = Path.Combine(ArtworkCacheFolder, "logos");
|
|
public static readonly string FanArtCacheFolder = Path.Combine(ArtworkCacheFolder, "fanart");
|
|
}
|
|
}
|