diff --git a/Audio/adkar/1.ogg b/Audio/athkar/1.ogg similarity index 100% rename from Audio/adkar/1.ogg rename to Audio/athkar/1.ogg diff --git a/Audio/adkar/10.ogg b/Audio/athkar/10.ogg similarity index 100% rename from Audio/adkar/10.ogg rename to Audio/athkar/10.ogg diff --git a/Audio/adkar/11.ogg b/Audio/athkar/11.ogg similarity index 100% rename from Audio/adkar/11.ogg rename to Audio/athkar/11.ogg diff --git a/Audio/adkar/12.ogg b/Audio/athkar/12.ogg similarity index 100% rename from Audio/adkar/12.ogg rename to Audio/athkar/12.ogg diff --git a/Audio/adkar/13.ogg b/Audio/athkar/13.ogg similarity index 100% rename from Audio/adkar/13.ogg rename to Audio/athkar/13.ogg diff --git a/Audio/adkar/14.ogg b/Audio/athkar/14.ogg similarity index 100% rename from Audio/adkar/14.ogg rename to Audio/athkar/14.ogg diff --git a/Audio/adkar/15.ogg b/Audio/athkar/15.ogg similarity index 100% rename from Audio/adkar/15.ogg rename to Audio/athkar/15.ogg diff --git a/Audio/adkar/16.ogg b/Audio/athkar/16.ogg similarity index 100% rename from Audio/adkar/16.ogg rename to Audio/athkar/16.ogg diff --git a/Audio/adkar/17.ogg b/Audio/athkar/17.ogg similarity index 100% rename from Audio/adkar/17.ogg rename to Audio/athkar/17.ogg diff --git a/Audio/adkar/18.ogg b/Audio/athkar/18.ogg similarity index 100% rename from Audio/adkar/18.ogg rename to Audio/athkar/18.ogg diff --git a/Audio/adkar/19.ogg b/Audio/athkar/19.ogg similarity index 100% rename from Audio/adkar/19.ogg rename to Audio/athkar/19.ogg diff --git a/Audio/adkar/2.ogg b/Audio/athkar/2.ogg similarity index 100% rename from Audio/adkar/2.ogg rename to Audio/athkar/2.ogg diff --git a/Audio/adkar/20.ogg b/Audio/athkar/20.ogg similarity index 100% rename from Audio/adkar/20.ogg rename to Audio/athkar/20.ogg diff --git a/Audio/adkar/21.ogg b/Audio/athkar/21.ogg similarity index 100% rename from Audio/adkar/21.ogg rename to Audio/athkar/21.ogg diff --git a/Audio/adkar/22.ogg b/Audio/athkar/22.ogg similarity index 100% rename from Audio/adkar/22.ogg rename to Audio/athkar/22.ogg diff --git a/Audio/adkar/23.ogg b/Audio/athkar/23.ogg similarity index 100% rename from Audio/adkar/23.ogg rename to Audio/athkar/23.ogg diff --git a/Audio/adkar/24.ogg b/Audio/athkar/24.ogg similarity index 100% rename from Audio/adkar/24.ogg rename to Audio/athkar/24.ogg diff --git a/Audio/adkar/25.ogg b/Audio/athkar/25.ogg similarity index 100% rename from Audio/adkar/25.ogg rename to Audio/athkar/25.ogg diff --git a/Audio/adkar/26.ogg b/Audio/athkar/26.ogg similarity index 100% rename from Audio/adkar/26.ogg rename to Audio/athkar/26.ogg diff --git a/Audio/adkar/27.ogg b/Audio/athkar/27.ogg similarity index 100% rename from Audio/adkar/27.ogg rename to Audio/athkar/27.ogg diff --git a/Audio/adkar/28.ogg b/Audio/athkar/28.ogg similarity index 100% rename from Audio/adkar/28.ogg rename to Audio/athkar/28.ogg diff --git a/Audio/adkar/29.ogg b/Audio/athkar/29.ogg similarity index 100% rename from Audio/adkar/29.ogg rename to Audio/athkar/29.ogg diff --git a/Audio/adkar/3.ogg b/Audio/athkar/3.ogg similarity index 100% rename from Audio/adkar/3.ogg rename to Audio/athkar/3.ogg diff --git a/Audio/adkar/30.ogg b/Audio/athkar/30.ogg similarity index 100% rename from Audio/adkar/30.ogg rename to Audio/athkar/30.ogg diff --git a/Audio/adkar/31.ogg b/Audio/athkar/31.ogg similarity index 100% rename from Audio/adkar/31.ogg rename to Audio/athkar/31.ogg diff --git a/Audio/adkar/32.ogg b/Audio/athkar/32.ogg similarity index 100% rename from Audio/adkar/32.ogg rename to Audio/athkar/32.ogg diff --git a/Audio/adkar/33.ogg b/Audio/athkar/33.ogg similarity index 100% rename from Audio/adkar/33.ogg rename to Audio/athkar/33.ogg diff --git a/Audio/adkar/34.ogg b/Audio/athkar/34.ogg similarity index 100% rename from Audio/adkar/34.ogg rename to Audio/athkar/34.ogg diff --git a/Audio/adkar/35.ogg b/Audio/athkar/35.ogg similarity index 100% rename from Audio/adkar/35.ogg rename to Audio/athkar/35.ogg diff --git a/Audio/adkar/36.ogg b/Audio/athkar/36.ogg similarity index 100% rename from Audio/adkar/36.ogg rename to Audio/athkar/36.ogg diff --git a/Audio/adkar/37.ogg b/Audio/athkar/37.ogg similarity index 100% rename from Audio/adkar/37.ogg rename to Audio/athkar/37.ogg diff --git a/Audio/adkar/38.ogg b/Audio/athkar/38.ogg similarity index 100% rename from Audio/adkar/38.ogg rename to Audio/athkar/38.ogg diff --git a/Audio/adkar/39.ogg b/Audio/athkar/39.ogg similarity index 100% rename from Audio/adkar/39.ogg rename to Audio/athkar/39.ogg diff --git a/Audio/adkar/41.ogg b/Audio/athkar/41.ogg similarity index 100% rename from Audio/adkar/41.ogg rename to Audio/athkar/41.ogg diff --git a/Audio/adkar/42.ogg b/Audio/athkar/42.ogg similarity index 100% rename from Audio/adkar/42.ogg rename to Audio/athkar/42.ogg diff --git a/Audio/adkar/43.ogg b/Audio/athkar/43.ogg similarity index 100% rename from Audio/adkar/43.ogg rename to Audio/athkar/43.ogg diff --git a/Audio/adkar/44.ogg b/Audio/athkar/44.ogg similarity index 100% rename from Audio/adkar/44.ogg rename to Audio/athkar/44.ogg diff --git a/Audio/adkar/45.ogg b/Audio/athkar/45.ogg similarity index 100% rename from Audio/adkar/45.ogg rename to Audio/athkar/45.ogg diff --git a/Audio/adkar/5.ogg b/Audio/athkar/5.ogg similarity index 100% rename from Audio/adkar/5.ogg rename to Audio/athkar/5.ogg diff --git a/Audio/adkar/6.ogg b/Audio/athkar/6.ogg similarity index 100% rename from Audio/adkar/6.ogg rename to Audio/athkar/6.ogg diff --git a/Audio/adkar/7.ogg b/Audio/athkar/7.ogg similarity index 100% rename from Audio/adkar/7.ogg rename to Audio/athkar/7.ogg diff --git a/Audio/adkar/8.ogg b/Audio/athkar/8.ogg similarity index 100% rename from Audio/adkar/8.ogg rename to Audio/athkar/8.ogg diff --git a/Audio/adkar/9.ogg b/Audio/athkar/9.ogg similarity index 100% rename from Audio/adkar/9.ogg rename to Audio/athkar/9.ogg diff --git a/ui/dialogs/athkar_dialog.py b/ui/dialogs/athkar_dialog.py index d551f0a..5f1ff7c 100644 --- a/ui/dialogs/athkar_dialog.py +++ b/ui/dialogs/athkar_dialog.py @@ -7,10 +7,10 @@ from core_functions.athkar.athkar_db_manager import AthkarDBManager from core_functions.athkar.models import AthkarCategory from core_functions.athkar.athkar_scheduler import AthkarScheduler -from utils.const import user_db_path, data_folder, athkar_db_path +from utils.const import user_db_path, data_folder, athkar_db_path, default_athkar_path class AthkarDialog(QDialog): - athkar_scheduler = AthkarScheduler(athkar_db_path, "Audio/adkar", data_folder/"athkar/text_athkar.json") + athkar_scheduler = AthkarScheduler(athkar_db_path, default_athkar_path, data_folder/"athkar/text_athkar.json") athkar_scheduler.start() def __init__(self, parent): diff --git a/utils/const.py b/utils/const.py index 22f4c35..58cb702 100644 --- a/utils/const.py +++ b/utils/const.py @@ -7,9 +7,13 @@ albayan_folder = os.path.join(tecwindow_folder, "albayan") os.makedirs(albayan_folder, exist_ok=True) user_db_path = os.path.join(albayan_folder, "user_data.db") -athkar_db_path = Path(albayan_folder)/"athkar.db" data_folder = Path("database") +#athkar +athkar_db_path = Path(albayan_folder) / "athkar.db" +default_athkar_path = Path(albayan_folder) / "audio" / "athkar" +test_athkar_path = Path("audio/athkar") + # albayan folder in temp temp_folder = os.path.join(os.getenv("TEMP"), "albayan") os.makedirs(temp_folder, exist_ok=True)