public LibraryGenerator( MovieRepository MovieRepository, LibGenFactory LibGenFactory, SourceRepository SourceRepository, LibGenMovieRepository LibGenMovieRepository, LibGenTvShowRepository LibGenTvShowRepository, SearchCatalog searchCatalog ) { this.MovieRepository = MovieRepository; this.LibGenFactory = LibGenFactory; this.SourceRepository = SourceRepository; this.LibGenMovieRepository = LibGenMovieRepository; this.LibGenTvShowRepository = LibGenTvShowRepository; this.SearchCatalog = searchCatalog; try { if (File.Exists(LibraryGenerator.StatusFilePath)) { //load any old status saved in cache var statusJson = File.ReadAllText(LibraryGenerator.StatusFilePath); this.Status = Newtonsoft.Json.JsonConvert.DeserializeObject <LibraryGeneratorStatus>(statusJson); } } catch (Exception) { } }
public MovieMetadataProcessor( AppSettings AppSettings, Lazy <MovieRepository> LazyMovieRepository, LibGenFactory LibGenFactory, LibGenMovieRepository LibGenMovieRepository, TMDbClient TMDbClient ) { this.AppSettings = AppSettings; this.LazyMovieRepository = LazyMovieRepository; this.LibGenFactory = LibGenFactory; this.LibGenMovieRepository = LibGenMovieRepository; this.Client = TMDbClient; }
public LibGenMovie( string moviePath, int sourceId, LibGenMovieRepository LibGenMovieRepository, MovieMetadataProcessor MovieMetadataProcessor, AppSettings AppSettings, Utility Utility, SourceRepository SourceRepository ) { this.FolderPath = moviePath; this.SourceId = sourceId; this.LibGenMovieRepository = LibGenMovieRepository; this.MovieMetadataProcessor = MovieMetadataProcessor; this.AppSettings = AppSettings; this.Utility = Utility; this.SourceRepository = SourceRepository; }