diff --git a/.gitignore b/.gitignore index af253e0..06006a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/.obsidian \ No newline at end of file +/.obsidian + +__pycache__ diff --git a/profiles/hd-bluray-web-d1d67249d3890e49bc12e275d989a7e9.yml b/profiles/HD Bluray + WEB.yml similarity index 100% rename from profiles/hd-bluray-web-d1d67249d3890e49bc12e275d989a7e9.yml rename to profiles/HD Bluray + WEB.yml diff --git a/profiles/remux-web-1080p-9ca12ea80aa55ef916e3751f4b874151.yml b/profiles/Remux + WEB 1080p.yml similarity index 100% rename from profiles/remux-web-1080p-9ca12ea80aa55ef916e3751f4b874151.yml rename to profiles/Remux + WEB 1080p.yml diff --git a/profiles/remux-web-2160p-fd161a61e3ab826d3a22d53f935696dd.yml b/profiles/Remux + WEB 2160p.yml similarity index 100% rename from profiles/remux-web-2160p-fd161a61e3ab826d3a22d53f935696dd.yml rename to profiles/Remux + WEB 2160p.yml diff --git a/profiles/remux-2160p-alternative-dd3cd75deb9645bae838d1c5da6388d5.yml b/profiles/Remux 2160p (Alternative).yml similarity index 100% rename from profiles/remux-2160p-alternative-dd3cd75deb9645bae838d1c5da6388d5.yml rename to profiles/Remux 2160p (Alternative).yml diff --git a/profiles/remux-2160p-combined-d1d310673359205736b4b84acd5ea8c8.yml b/profiles/Remux 2160p (Combined).yml similarity index 100% rename from profiles/remux-2160p-combined-d1d310673359205736b4b84acd5ea8c8.yml rename to profiles/Remux 2160p (Combined).yml diff --git a/profiles/uhd-bluray-web-64fb5f9858489bdac2af690e27c8f42f.yml b/profiles/UHD Bluray + WEB.yml similarity index 100% rename from profiles/uhd-bluray-web-64fb5f9858489bdac2af690e27c8f42f.yml rename to profiles/UHD Bluray + WEB.yml diff --git a/profiles/anime-remux-1080p-722b624f9af1e492284c4bc842153a38.yml b/profiles/[Anime] Remux-1080p.yml similarity index 100% rename from profiles/anime-remux-1080p-722b624f9af1e492284c4bc842153a38.yml rename to profiles/[Anime] Remux-1080p.yml diff --git a/profiles/french-multi-vo-hd-bluray-web-2572ce3ea4eef1c19d59e0e20ed1cea7.yml b/profiles/[French MULTi.VO] HD Bluray + WEB.yml similarity index 100% rename from profiles/french-multi-vo-hd-bluray-web-2572ce3ea4eef1c19d59e0e20ed1cea7.yml rename to profiles/[French MULTi.VO] HD Bluray + WEB.yml diff --git a/profiles/french-multi-vo-hd-remux-web-c6460a102b312200c095a2d0982e0461.yml b/profiles/[French MULTi.VO] HD Remux (1080p).yml similarity index 100% rename from profiles/french-multi-vo-hd-remux-web-c6460a102b312200c095a2d0982e0461.yml rename to profiles/[French MULTi.VO] HD Remux (1080p).yml diff --git a/profiles/french-multi-vo-uhd-bluray-web-92ead7022d13a7858d54e328e6a2f8f9.yml b/profiles/[French MULTi.VO] UHD Bluray + WEB.yml similarity index 100% rename from profiles/french-multi-vo-uhd-bluray-web-92ead7022d13a7858d54e328e6a2f8f9.yml rename to profiles/[French MULTi.VO] UHD Bluray + WEB.yml diff --git a/profiles/french-multi-vo-uhd-remux-web-1fef28c8c919f31cd86283b1baf527d4.yml b/profiles/[French MULTi.VO] UHD Remux (2160p).yml similarity index 100% rename from profiles/french-multi-vo-uhd-remux-web-1fef28c8c919f31cd86283b1baf527d4.yml rename to profiles/[French MULTi.VO] UHD Remux (2160p).yml diff --git a/profiles/german-hd-bluray-web-2b90e905c99490edc7c7a5787443748b.yml b/profiles/[German] HD Bluray + WEB.yml similarity index 100% rename from profiles/german-hd-bluray-web-2b90e905c99490edc7c7a5787443748b.yml rename to profiles/[German] HD Bluray + WEB.yml diff --git a/profiles/german-hd-remux-web-c13c33fdd2c306266b34cb9946de5919.yml b/profiles/[German] HD Remux + WEB.yml similarity index 100% rename from profiles/german-hd-remux-web-c13c33fdd2c306266b34cb9946de5919.yml rename to profiles/[German] HD Remux + WEB.yml diff --git a/profiles/german-uhd-remux-web-79faa9943cef2f510b997b1f2a9f3ea6.yml b/profiles/[German] Remux + WEB 2160p.yml similarity index 100% rename from profiles/german-uhd-remux-web-79faa9943cef2f510b997b1f2a9f3ea6.yml rename to profiles/[German] Remux + WEB 2160p.yml diff --git a/profiles/german-uhd-bluray-web-alternative-425da1ba30711b55d2eb371437ec98d7.yml b/profiles/[German] UHD Bluray + WEB (Alternative).yml similarity index 100% rename from profiles/german-uhd-bluray-web-alternative-425da1ba30711b55d2eb371437ec98d7.yml rename to profiles/[German] UHD Bluray + WEB (Alternative).yml diff --git a/profiles/german-uhd-bluray-web-27cc3d153c0a799fd139ef1ff4c4cc42.yml b/profiles/[German] UHD Bluray + WEB.yml similarity index 100% rename from profiles/german-uhd-bluray-web-27cc3d153c0a799fd139ef1ff4c4cc42.yml rename to profiles/[German] UHD Bluray + WEB.yml diff --git a/profiles/sqp-1-1080p-0896c29d74de619df168d23b98104b22.yml b/profiles/[SQP] SQP-1 (1080p).yml similarity index 100% rename from profiles/sqp-1-1080p-0896c29d74de619df168d23b98104b22.yml rename to profiles/[SQP] SQP-1 (1080p).yml diff --git a/profiles/sqp-1-2160p-5128baeb2b081b72126bc8482b2a86a0.yml b/profiles/[SQP] SQP-1 (2160p).yml similarity index 100% rename from profiles/sqp-1-2160p-5128baeb2b081b72126bc8482b2a86a0.yml rename to profiles/[SQP] SQP-1 (2160p).yml diff --git a/profiles/sqp-1-web-1080p-90a3370d2d30cbaf08d9c23b856a12c8.yml b/profiles/[SQP] SQP-1 WEB (1080p).yml similarity index 100% rename from profiles/sqp-1-web-1080p-90a3370d2d30cbaf08d9c23b856a12c8.yml rename to profiles/[SQP] SQP-1 WEB (1080p).yml diff --git a/profiles/sqp-1-web-2160p-e91c9adaca0231493f4af0d571b907f9.yml b/profiles/[SQP] SQP-1 WEB (2160p).yml similarity index 100% rename from profiles/sqp-1-web-2160p-e91c9adaca0231493f4af0d571b907f9.yml rename to profiles/[SQP] SQP-1 WEB (2160p).yml diff --git a/profiles/sqp-2-c3933358ba2356bafc41524f81471069.yml b/profiles/[SQP] SQP-2.yml similarity index 100% rename from profiles/sqp-2-c3933358ba2356bafc41524f81471069.yml rename to profiles/[SQP] SQP-2.yml diff --git a/profiles/sqp-3-audio-0ada8e60cc3ddf2733b65de10f4a6c72.yml b/profiles/[SQP] SQP-3 (Audio).yml similarity index 100% rename from profiles/sqp-3-audio-0ada8e60cc3ddf2733b65de10f4a6c72.yml rename to profiles/[SQP] SQP-3 (Audio).yml diff --git a/profiles/sqp-3-2cf36c1f0106ffac993be003ade51865.yml b/profiles/[SQP] SQP-3.yml similarity index 100% rename from profiles/sqp-3-2cf36c1f0106ffac993be003ade51865.yml rename to profiles/[SQP] SQP-3.yml diff --git a/profiles/sqp-4-013f89e6da27519fe56cf482702a2db9.yml b/profiles/[SQP] SQP-4.yml similarity index 100% rename from profiles/sqp-4-013f89e6da27519fe56cf482702a2db9.yml rename to profiles/[SQP] SQP-4.yml diff --git a/profiles/sqp-5-a7bb1539fd147256b21b1098f3dc2016.yml b/profiles/[SQP] SQP-5.yml similarity index 100% rename from profiles/sqp-5-a7bb1539fd147256b21b1098f3dc2016.yml rename to profiles/[SQP] SQP-5.yml diff --git a/scripts/utils/__pycache__/__init__.cpython-313.pyc b/scripts/utils/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index 1532a53..0000000 Binary files a/scripts/utils/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/scripts/utils/__pycache__/custom_formats.cpython-313.pyc b/scripts/utils/__pycache__/custom_formats.cpython-313.pyc deleted file mode 100644 index 32513d8..0000000 Binary files a/scripts/utils/__pycache__/custom_formats.cpython-313.pyc and /dev/null differ diff --git a/scripts/utils/__pycache__/profiles.cpython-313.pyc b/scripts/utils/__pycache__/profiles.cpython-313.pyc deleted file mode 100644 index 39c718c..0000000 Binary files a/scripts/utils/__pycache__/profiles.cpython-313.pyc and /dev/null differ diff --git a/scripts/utils/__pycache__/regex_patterns.cpython-313.pyc b/scripts/utils/__pycache__/regex_patterns.cpython-313.pyc deleted file mode 100644 index 58d5261..0000000 Binary files a/scripts/utils/__pycache__/regex_patterns.cpython-313.pyc and /dev/null differ diff --git a/scripts/utils/__pycache__/strings.cpython-313.pyc b/scripts/utils/__pycache__/strings.cpython-313.pyc deleted file mode 100644 index 9f1a799..0000000 Binary files a/scripts/utils/__pycache__/strings.cpython-313.pyc and /dev/null differ diff --git a/scripts/utils/profiles.py b/scripts/utils/profiles.py index bfe20b1..ce3845b 100644 --- a/scripts/utils/profiles.py +++ b/scripts/utils/profiles.py @@ -77,7 +77,7 @@ def collect_qualities(items): return qualities -def collect_profile(service, file_name, input_json, output_dir): +def collect_profile(service, input_json, output_dir): # Compose YAML structure name = input_json.get('name', '') trash_id = input_json.get('trash_id', '') @@ -97,7 +97,7 @@ def collect_profile(service, file_name, input_json, output_dir): } # Output path - output_path = os.path.join(output_dir, f"{file_name}-{trash_id}.yml") + output_path = os.path.join(output_dir, f"{name}.yml") with open(output_path, 'w', encoding='utf-8') as f: yaml.dump(yml_data, f, sort_keys=False, allow_unicode=True) print(f"Generated: {output_path}") @@ -109,7 +109,6 @@ def collect_profiles(service, input_dir, output_dir): continue file_path = os.path.join(root, filename) - file_stem = os.path.splitext(filename)[0] # Filename without extension with open(file_path, 'r', encoding='utf-8') as f: data = json.load(f) - collect_profile(service, file_stem, data, output_dir) + collect_profile(service, data, output_dir)