From 5a1d91073f11b74e4500a6506254420f704c1a84 Mon Sep 17 00:00:00 2001 From: charlesxie <408737515@qq.com> Date: Wed, 12 Apr 2023 16:39:46 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=E6=94=AF=E6=8C=81=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/task/services/update_ids.py | 2 +- applications/task/views.py | 2 ++ compose/local/django/start | 4 ++-- requirements.txt | 4 +++- requirements/base.txt | 3 ++- web/src/views/home/home.vue | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/applications/task/services/update_ids.py b/applications/task/services/update_ids.py index e561086..714a23b 100644 --- a/applications/task/services/update_ids.py +++ b/applications/task/services/update_ids.py @@ -9,7 +9,7 @@ from applications.utils.send import send def update_music_info(music_id3_info, is_raw_thumbnail=False): for each in music_id3_info: f = music_tag.load_file(each["file_full_path"]) - base_filename = each["filename"].split(".")[0] + base_filename = ".".join(each["filename"].split(".")[:-1]) var_dict = { "title": f["title"].value, "artist": f["artist"].value, diff --git a/applications/task/views.py b/applications/task/views.py index 31f7055..7514ebe 100644 --- a/applications/task/views.py +++ b/applications/task/views.py @@ -129,11 +129,13 @@ class TaskViewSets(GenericViewSet): continue music_info.update({ "file_full_path": f"{file_full_path}/{each}", + "filename": each }) music_id3_info.append(copy.deepcopy(music_info)) else: music_info.update({ "file_full_path": f"{full_path}/{data.get('name')}", + "filename": data.get('name') }) music_id3_info.append(copy.deepcopy(music_info)) update_music_info(music_id3_info) diff --git a/compose/local/django/start b/compose/local/django/start index c7c5acc..1dcc90e 100644 --- a/compose/local/django/start +++ b/compose/local/django/start @@ -6,5 +6,5 @@ set -o nounset python manage.py migrate -#exec gunicorn -w 2 -b 0.0.0.0:8001 django_vue_cli.wsgi:application --timeout 120 -python manage.py runserver 0.0.0.0:8001 \ No newline at end of file +gunicorn -w 2 -b 0.0.0.0:8001 django_vue_cli.wsgi:application --timeout 120 +#python manage.py runserver 0.0.0.0:8001 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3972cb6..88dc8f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,6 @@ gunicorn==20.1.0 gevent==21.12.0 djangorestframework-jwt==1.11.0 music-tag==0.4.3 -Pillow==9.4.0 \ No newline at end of file +Pillow==9.4.0 +pycryptodomex==3.17 +Mako==1.0.6 \ No newline at end of file diff --git a/requirements/base.txt b/requirements/base.txt index 8099ed1..3c48279 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -9,4 +9,5 @@ gevent==21.12.0 djangorestframework-jwt==1.11.0 music-tag==0.4.3 Pillow==9.4.0 -pycryptodomex==3.17 \ No newline at end of file +pycryptodomex==3.17 +Mako==1.0.6 diff --git a/web/src/views/home/home.vue b/web/src/views/home/home.vue index 461969c..1c4175f 100644 --- a/web/src/views/home/home.vue +++ b/web/src/views/home/home.vue @@ -336,7 +336,8 @@ const titleClass = node.selected ? 'node-title node-selected' : 'node-title' return { this.nodeClickOne(node) }} v-bk-tooltips={node.title}> + onClick={() => { this.nodeClickOne(node) }} v-bk-tooltips={node.title}> + }, backDir() {