Better costant with os.

This commit is contained in:
Lovi 2024-06-16 15:51:24 +02:00
parent 4a473d0b0d
commit 19f5439c0f
10 changed files with 58 additions and 10 deletions

View File

@ -0,0 +1,15 @@
# 16.06.24
# Internal utilities
from Src.Util.console import console, msg
# Variable
indice = 5
def search():
"""
Main function of the application for film and series.
"""
pass

View File

@ -0,0 +1,15 @@
# 26.05.24
import os
# Internal utilities
from Src.Util._jsonConfig import config_manager
SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
DOMAIN_NOW = config_manager.get('SITE', SITE_NAME)
MOVIE_FOLDER = "Movie"
SERIE_FOLDER = "Serie"

View File

@ -12,6 +12,7 @@ from .film import download_film
# Variable # Variable
indice = 2 indice = 2
def search(): def search():
""" """
Main function of the application for film and series. Main function of the application for film and series.

View File

@ -1,10 +1,13 @@
# 26.05.24 # 26.05.24
import os
# Internal utilities # Internal utilities
from Src.Util._jsonConfig import config_manager from Src.Util._jsonConfig import config_manager
SITE_NAME = "altadefinizione" SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
ROOT_PATH = config_manager.get('DEFAULT', 'root_path') ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
DOMAIN_NOW = config_manager.get('SITE', SITE_NAME) DOMAIN_NOW = config_manager.get('SITE', SITE_NAME)

View File

@ -1,10 +1,13 @@
# 26.05.24 # 26.05.24
import os
# Internal utilities # Internal utilities
from Src.Util._jsonConfig import config_manager from Src.Util._jsonConfig import config_manager
SITE_NAME = "animeunity" SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
ROOT_PATH = config_manager.get('DEFAULT', 'root_path') ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
DOMAIN_NOW = config_manager.get('SITE', SITE_NAME) DOMAIN_NOW = config_manager.get('SITE', SITE_NAME)

View File

@ -1,10 +1,13 @@
# 09.06.24 # 09.06.24
import os
# Internal utilities # Internal utilities
from Src.Util._jsonConfig import config_manager from Src.Util._jsonConfig import config_manager
SITE_NAME = "ddlstreamitaly" SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
ROOT_PATH = config_manager.get('DEFAULT', 'root_path') ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
DOMAIN_NOW = config_manager.get('SITE', SITE_NAME) DOMAIN_NOW = config_manager.get('SITE', SITE_NAME)

View File

@ -1,10 +1,13 @@
# 09.06.24 # 09.06.24
import os
# Internal utilities # Internal utilities
from Src.Util._jsonConfig import config_manager from Src.Util._jsonConfig import config_manager
SITE_NAME = "guardaserie" SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
ROOT_PATH = config_manager.get('DEFAULT', 'root_path') ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
DOMAIN_NOW = config_manager.get('SITE', SITE_NAME) DOMAIN_NOW = config_manager.get('SITE', SITE_NAME)

View File

@ -18,6 +18,7 @@ from .series import download_series
# Variable # Variable
indice = 0 indice = 0
def search(): def search():
""" """
Main function of the application for film and series. Main function of the application for film and series.

View File

@ -1,10 +1,13 @@
# 26.05.24 # 26.05.24
import os
# Internal utilities # Internal utilities
from Src.Util._jsonConfig import config_manager from Src.Util._jsonConfig import config_manager
SITE_NAME = "streamingcommunity" SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
ROOT_PATH = config_manager.get('DEFAULT', 'root_path') ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
DOMAIN_NOW = config_manager.get('SITE', SITE_NAME) DOMAIN_NOW = config_manager.get('SITE', SITE_NAME)

View File

@ -52,10 +52,11 @@
"force_resolution": -1 "force_resolution": -1
}, },
"SITE": { "SITE": {
"streamingcommunity": "foo", "Streamingcommunity": "foo",
"animeunity": "to", "Animeunity": "to",
"altadefinizione": "vodka", "Altadefinizione": "vodka",
"guardaserie": "ceo", "Guardaserie": "ceo",
"ddlstreamitaly": "co" "Ddlstreamitaly": "co",
"4kTitle": "foo"
} }
} }