mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Better costant with os.
This commit is contained in:
parent
4a473d0b0d
commit
19f5439c0f
15
Src/Api/4kTitle/__init__.py
Normal file
15
Src/Api/4kTitle/__init__.py
Normal 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
|
15
Src/Api/4kTitle/costant.py
Normal file
15
Src/Api/4kTitle/costant.py
Normal 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"
|
@ -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.
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
11
config.json
11
config.json
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user