mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-06 19:45:24 +00:00

Splits the monolithic GUI logic into modular components, improving maintainability. Introduces `RunTab`, `ResultsTable`, and utility modules for better separation of concerns and reusability. Adjusts main entry point and refactors core functionalities to align with the new structure.
19 lines
419 B
Python
19 lines
419 B
Python
from StreamingCommunity.run import load_search_functions
|
|
|
|
|
|
def get_sites():
|
|
search_functions = load_search_functions()
|
|
sites = []
|
|
for alias, (_, use_for) in search_functions.items():
|
|
sites.append(
|
|
{
|
|
"index": len(sites),
|
|
"name": alias.split("_")[0],
|
|
"flag": alias[:3].upper(),
|
|
}
|
|
)
|
|
return sites
|
|
|
|
|
|
sites = get_sites()
|