Fix SeriesApp: Add missing class variable and clean up unused imports
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
import sys
|
||||
import os
|
||||
import logging
|
||||
|
||||
from src.core.SerieScanner import SerieScanner
|
||||
from src.core.entities.SerieList import SerieList
|
||||
from src.core.providers.provider_factory import Loaders
|
||||
|
||||
|
||||
class SeriesApp:
|
||||
|
||||
_initialization_count = 0
|
||||
|
||||
def __init__(self, directory_to_search: str):
|
||||
|
||||
# Only show initialization message for the first instance
|
||||
SeriesApp._initialization_count += 1 # Only show initialization message for the first instance
|
||||
if SeriesApp._initialization_count <= 1:
|
||||
print("Please wait while initializing...")
|
||||
|
||||
@@ -27,7 +23,7 @@ class SeriesApp:
|
||||
def __InitList__(self):
|
||||
self.series_list = self.List.GetMissingEpisode()
|
||||
|
||||
def search(self, words :str) -> list:
|
||||
def search(self, words: str) -> list:
|
||||
return self.loader.Search(words)
|
||||
|
||||
def download(self, serieFolder: str, season: int, episode: int, key: str, callback) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user