Fix gui scroll & bug in file path cleaning

feature/scrape_user_items
Michael K. Steinberg 2023-01-09 19:52:08 +02:00
rodzic d0a9c5bc4d
commit 555572d242
4 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -24,4 +24,4 @@ VERIFY_SSL = True
settings = Settings()
def clean_file_path(prompt: str):
return prompt.replace('?', '').replace('"', '').replace('*', '').replace('|', '').replace('\\', '').replace(':', '').replace('>', '').replace('<', '')
return prompt.replace('/', '').replace('?', '').replace('"', '').replace('*', '').replace('|', '').replace('\\', '').replace(':', '').replace('>', '').replace('<', '')

Wyświetl plik

@ -1,5 +1,5 @@
class Settings:
DEFAULT_DOWNLOAD_DIRECTORY = 'music'
DEFAULT_DOWNLOAD_DIRECTORY = 'E:\\Spotify\\'
ARTIST_IMAGES_SUB_DIR = '_Artists'
PLAYLIST_METADATA_SUB_DIR = '_Playlists'
GLOBALS_SAVE_FILE = '_downloaded_store.json'

Wyświetl plik

@ -57,12 +57,12 @@
</div>
<div>
<div style="display:inline-flex;align-items:baseline;"><label>Show settings: </label><input id="autoscroll" type="checkbox" checked onchange="toggle_settings_visibility();"></div>
<fieldset id="settings-container" style="display:contents;" name="Settings">
<div id="settings-container" style="display:block;" name="Settings">
<form action="/settings/" method="POST" target="dummy-frame" style="width:100%;">
<input name="download-dir" placeholder="Download directory" value="{{settings.DEFAULT_DOWNLOAD_DIRECTORY}}">
<input type="Submit" value="Save">
</form>
</fieldset>
</div>
</div>
<div style="display:inline-flex;align-items:baseline;"><label>Autoscroll: </label><input id="autoscroll" type="checkbox" checked></div>
<div id="console-output" class="align-bottom scrollable">

Wyświetl plik

@ -32,7 +32,7 @@ def actions_download():
@app.route('/actions/download/categories')
def actions_download_categories():
download_all_categories_playlists()
download_all_categories_playlists(download_meta_data_only=False)
@app.route('/info/console/')