kopia lustrzana https://github.com/Michael-K-Stein/SpotiFile
Fix gui scroll & bug in file path cleaning
rodzic
d0a9c5bc4d
commit
555572d242
|
@ -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('<', '')
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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/')
|
||||
|
|
Ładowanie…
Reference in New Issue