From 18879f9c3e47ebdb2ae3a50675a627c063bf04d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=89=E9=BB=98=E3=81=AE=E9=87=91?= <110812055+chenmozhijin@users.noreply.github.com> Date: Sun, 14 Apr 2024 01:51:58 +0800 Subject: [PATCH] 1.Fix some bugs 2.Add "offset" function --- LDDC.py | 3 +- README.md | 6 +- README_en.md | 46 + img/en_1.jpg | Bin 0 -> 429892 bytes img/en_2.jpg | Bin 0 -> 482799 bytes img/zh_1.jpg | Bin 0 -> 378449 bytes img/zh_2.jpg | Bin 0 -> 467166 bytes resource/i18n/LDDC_en.qm | Bin 23644 -> 25580 bytes resource/i18n/LDDC_en.ts | 424 ++++-- resource/resource_rc.py | 2951 +++++++++++++++++++------------------ ui/encrypted_lyrics.ui | 50 +- ui/encrypted_lyrics_ui.py | 52 +- ui/local_match.ui | 412 +++--- ui/local_match_ui.py | 206 ++- ui/search.ui | 66 +- ui/search_ui.py | 75 +- utils/api.py | 2 + utils/lyrics.py | 56 +- utils/song_info.py | 4 +- utils/worker.py | 41 +- view/about.py | 4 + view/encrypted_lyrics.py | 20 +- view/local_match.py | 6 + view/search.py | 28 +- 24 files changed, 2444 insertions(+), 2008 deletions(-) create mode 100644 README_en.md create mode 100644 img/en_1.jpg create mode 100644 img/en_2.jpg create mode 100644 img/zh_1.jpg create mode 100644 img/zh_2.jpg diff --git a/LDDC.py b/LDDC.py index 0849475..7824f66 100644 --- a/LDDC.py +++ b/LDDC.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later # SPDX-FileCopyrightText: Copyright (c) 2024 沉默の金 -__version__ = "v0.6.1" +__version__ = "v0.6.2" import logging import os import resource.resource_rc @@ -61,6 +61,7 @@ def __init__(self) -> None: self.setWindowTitle("LDDC") self.resize(1050, 600) self.setWindowIcon(QIcon(":/LDDC/img/icon/logo.png")) + self.set_sidebar_width(95) self.search_widget = SearchWidget(self, threadpool) self.local_match_widget = LocalMatchWidget(threadpool) diff --git a/README.md b/README.md index b2e6b11..fdfbd18 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # LDDC +中文 | [English](./README_en.md) + > 精准歌词(逐字歌词)下载解密转换 [![Codacy Badge](https://app.codacy.com/project/badge/Grade/015f636391584ffc82790ff7038da5ca)](https://app.codacy.com/gh/chenmozhijin/LDDC/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) @@ -22,8 +24,8 @@ ## 预览 -![image](img/1.jpg) -![image](img/2.jpg) +![image](img/zh_1.jpg) +![image](img/zh_2.jpg) ## 使用方法 diff --git a/README_en.md b/README_en.md new file mode 100644 index 0000000..30192fc --- /dev/null +++ b/README_en.md @@ -0,0 +1,46 @@ +# LDDC + +[中文](.\README.md) | English + +> Accurate Lyrics (verbatim lyrics) Download, Decryption, and Conversion + +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/015f636391584ffc82790ff7038da5ca)](https://app.codacy.com/gh/chenmozhijin/LDDC/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) +[![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/chenmozhijin/LDDC/total)](https://github.com/chenmozhijin/LDDC/releases/latest) +[![Static Badge](https://img.shields.io/badge/Python-3.10%2B-brightgreen)](https://www.python.org/downloads/) +[![Static Badge](https://img.shields.io/badge/License-GPLv3-blue)](https://github.com/chenmozhijin/LDDC/blob/main/LICENSE) +[![release](https://img.shields.io/github/v/release/chenmozhijin/LDDC?color=blue)](https://github.com/chenmozhijin/LDDC/releases/latest) + +## Features + +- [x] Search for singles, albums, and playlists on QQ Music, Kugou Music, and NetEase Cloud Music +- [x] One-click download of lyrics for entire albums and playlists +- [x] One-click match lyrics for local song files +- [x] Support for saving in multiple formats (lrc, srt, ass) +- [x] Double-click to preview lyrics and save directly +- [x] Merge lyrics of various types (original, translated, romanized) at will +- [x] Save path with various placeholders for arbitrary combinations +- [x] Support for opening locally encrypted lyrics +- [x] Multi-platform support + +## Preview + +![image](img/en_1.jpg) +![image](img/en_2.jpg) + +## Usage + +See [LDDC User Guide](https://github.com/chenmozhijin/LDDC/wiki) + +## Acknowledgments + +Some functionalities are implemented with reference to the following projects: + +### Lyrics Decryption + +[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=WXRIW&repo=Lyricify-Lyrics-Helper)](https://github.com/WXRIW/Lyricify-Lyrics-Helper) +[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=jixunmoe&repo=qmc-decode)](https://github.com/jixunmoe/qmc-decode) +[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=parakeet-rs&repo=libparakeet)](https://github.com/parakeet-rs/libparakeet) + +### Music Platform APIs + +[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=MCQTSS&repo=MCQTSS_QQMusic)](https://github.com/MCQTSS/MCQTSS_QQMusic) diff --git a/img/en_1.jpg b/img/en_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7d568c1a26c8aedd24bad48dbed838d8f32754b0 GIT binary patch literal 429892 zcmeFa2UJwc(kQ$M5)?#0PyrbvDv~n@j7k;(C1-?T2oi>z1V%9eB0&K`1w{~%BpD=( zlA}lvBxjJE^MrrTpdLN<-1NS8*LUCg-7NNWS65e8S65f}uG&3=`+^&xbyf1Qw*deR z4S*K_01AMdhz=kDQ$*k&K*R*>BcuVqiir6~`YO@MZ#cvtjxYe;0SNf-MkGQ=9|qHr zckKbvZ*^aTpPj&d^mPE>IrRPWoHfD<&UVQT;el|sL%6VshzUrroiwm_wnlinp8`aL zM8sr-#AJlU*o1^-L?vW|gg`0)K=PbuuWcL-0G<HqppSUl$d4P)03kwAefEc#`93+5(tTpw@?prW9lproLpq@Sxp0}T}w4Z~4-dIoy>qqJ0n>)Xd(=FfK`>H`O; z4^kgGc<|8Sg9i^D#@`Me-m60UuMoh!2WTmPE5LISB6fh7mWYIw2sZ$BazCz`2nuq! zkBD%A4C5~nfQXoM9~n6X<^BVp0{mJ?1Q3&aFF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