upload de projetos funcional + busca por bpm
Deploy / Deploy (push) Failing after 37s Details

This commit is contained in:
JotaChina 2025-12-08 11:23:31 -03:00
parent f087146926
commit 2bcd902d91
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@ permalink: /beats/
{% for projeto in site.data.all %} {% for projeto in site.data.all %}
{% assign proj_slug = projeto.file | slugify %} {% assign proj_slug = projeto.file | slugify %}
{% assign beat_slug = file_name_clean | slugify %} {% assign beat_slug = file_name_clean | slugify %}
{% if proj_slug == beat_slug %} {% if proj_slug == beat_slug %}
{% assign project_url = "/projetos/" | append: proj_slug | append: ".html" %} {% assign project_url = "/projetos/" | append: proj_slug | append: ".html" %}
{% endif %} {% endif %}
@ -73,7 +72,7 @@ permalink: /beats/
{% else %} {% else %}
<div class="column is-12"> <div class="column is-12">
<div class="notification is-warning has-text-centered"> <div class="notification is-warning has-text-centered">
Nenhum beat encontrado (beats.json vazio ou inexistente). Nenhum beat encontrado (beats.json vazio). Faça um upload para regenerar a lista.
</div> </div>
</div> </div>
{% endif %} {% endif %}

View File

@ -35,7 +35,7 @@ CONFIGS = [
{ {
"source_dir": WAV_FOLDER, # Vai ler a pasta src_mmpSearch/wav "source_dir": WAV_FOLDER, # Vai ler a pasta src_mmpSearch/wav
"output_file": os.path.join(DATA_FOLDER, "beats.json"), # Salva em _data/beats.json "output_file": os.path.join(DATA_FOLDER, "beats.json"), # Salva em _data/beats.json
"scan_type": "tree", "scan_type": "list",
"extensions": [".wav", ".mp3"], # Extensões permitidas "extensions": [".wav", ".mp3"], # Extensões permitidas
}, },
] ]