mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 07:40:41 -08:00
feat: create the preview script in the cache/preview dir
This commit is contained in:
@@ -306,13 +306,11 @@ def get_anime_preview(
|
||||
for key, value in replacements.items():
|
||||
preview_script = preview_script.replace(f"{{{key}}}", value)
|
||||
|
||||
(APP_CACHE_DIR / "search-results-preview-script.py").write_text(
|
||||
(PREVIEWS_CACHE_DIR / "search-results-preview-script.py").write_text(
|
||||
preview_script, encoding="utf-8"
|
||||
)
|
||||
|
||||
preview_script_final = (
|
||||
f"{sys.executable} {APP_CACHE_DIR / 'search-results-preview-script.py'} {{}}"
|
||||
)
|
||||
preview_script_final = f"{sys.executable} {PREVIEWS_CACHE_DIR / 'search-results-preview-script.py'} {{}}"
|
||||
return preview_script_final
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user