Skip to content

Commit

Permalink
✨ feat: 测试changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nichuanfang committed Oct 14, 2023
1 parent 651545b commit 1a1c13a
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Changelog Test

# 手动触发
on:
workflow_dispatch:

jobs:
changelog-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Get Tag Name
id: tagName
uses: olegtarasov/[email protected]

- name: Build Release
id: release
uses: MatteoCampinoti94/[email protected]
with:
version-name: ${{ steps.tagName.outputs.tag }}

- name: Create Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GH_TOKEN }}
tag_name: ${{ steps.tagName.outputs.tag }}
name: ${{ steps.release.outputs.title }}
body: ${{ steps.release.outputs.body }}
161 changes: 161 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- insertion marker -->
## Unreleased

<small>[Compare with latest](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.7...HEAD)</small>

<!-- insertion marker -->
## [v0.6.7](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.7) - 2023-10-13

<small>[Compare with v0.6.6](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.6...v0.6.7)</small>

## [v0.6.6](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.6) - 2023-10-13

<small>[Compare with v0.6.5](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.5...v0.6.6)</small>

## [v0.6.5](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.5) - 2023-10-13

<small>[Compare with v0.6.4](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.4...v0.6.5)</small>

## [v0.6.4](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.4) - 2023-10-13

<small>[Compare with v0.6.3](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.3...v0.6.4)</small>

## [v0.6.3](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.3) - 2023-10-13

<small>[Compare with v0.6.2](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.2...v0.6.3)</small>

## [v0.6.2](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.2) - 2023-10-13

<small>[Compare with v0.6.1](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.1...v0.6.2)</small>

## [v0.6.1](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.1) - 2023-10-13

<small>[Compare with v0.6.0](https://github.com/nichuanfang/music-tool-kit/compare/v0.6.0...v0.6.1)</small>

## [v0.6.0](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.6.0) - 2023-10-13

<small>[Compare with v0.5.9](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.9...v0.6.0)</small>

## [v0.5.9](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.9) - 2023-10-13

<small>[Compare with v0.5.8](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.8...v0.5.9)</small>

## [v0.5.8](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.8) - 2023-10-13

<small>[Compare with v0.5.7](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.7...v0.5.8)</small>

## [v0.5.7](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.7) - 2023-10-13

<small>[Compare with v0.5.6](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.6...v0.5.7)</small>

## [v0.5.6](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.6) - 2023-10-13

<small>[Compare with v0.5.5](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.5...v0.5.6)</small>

## [v0.5.5](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.5) - 2023-10-13

<small>[Compare with v0.5.4](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.4...v0.5.5)</small>

## [v0.5.4](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.4) - 2023-10-13

<small>[Compare with v0.5.3](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.3...v0.5.4)</small>

## [v0.5.3](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.3) - 2023-10-13

<small>[Compare with v0.5.2](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.2...v0.5.3)</small>

## [v0.5.2](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.2) - 2023-10-13

<small>[Compare with v0.5.1](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.1...v0.5.2)</small>

## [v0.5.1](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.1) - 2023-10-13

<small>[Compare with v0.5.0](https://github.com/nichuanfang/music-tool-kit/compare/v0.5.0...v0.5.1)</small>

## [v0.5.0](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.5.0) - 2023-10-12

<small>[Compare with v0.4.9](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.9...v0.5.0)</small>

## [v0.4.9](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.9) - 2023-10-12

<small>[Compare with v0.4.8](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.8...v0.4.9)</small>

## [v0.4.8](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.8) - 2023-10-12

<small>[Compare with v0.4.7](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.7...v0.4.8)</small>

## [v0.4.7](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.7) - 2023-10-12

<small>[Compare with v0.4.6](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.6...v0.4.7)</small>

## [v0.4.6](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.6) - 2023-10-12

<small>[Compare with v0.4.5](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.5...v0.4.6)</small>

## [v0.4.5](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.5) - 2023-10-12

<small>[Compare with v0.4.3](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.3...v0.4.5)</small>

## [v0.4.3](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.3) - 2023-10-12

<small>[Compare with v0.4.2](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.2...v0.4.3)</small>

## [v0.4.2](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.2) - 2023-10-12

<small>[Compare with v0.4.1](https://github.com/nichuanfang/music-tool-kit/compare/v0.4.1...v0.4.2)</small>

## [v0.4.1](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.4.1) - 2023-10-12

<small>[Compare with 0.4.0](https://github.com/nichuanfang/music-tool-kit/compare/0.4.0...v0.4.1)</small>

## [0.4.0](https://github.com/nichuanfang/music-tool-kit/releases/tag/0.4.0) - 2023-10-12

<small>[Compare with 0.3.9](https://github.com/nichuanfang/music-tool-kit/compare/0.3.9...0.4.0)</small>

## [0.3.9](https://github.com/nichuanfang/music-tool-kit/releases/tag/0.3.9) - 2023-10-12

<small>[Compare with 0.3.8](https://github.com/nichuanfang/music-tool-kit/compare/0.3.8...0.3.9)</small>

## [0.3.8](https://github.com/nichuanfang/music-tool-kit/releases/tag/0.3.8) - 2023-10-12

<small>[Compare with v0.2.4](https://github.com/nichuanfang/music-tool-kit/compare/v0.2.4...0.3.8)</small>

## [v0.2.4](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.2.4) - 2023-10-11

<small>[Compare with v0.2.3](https://github.com/nichuanfang/music-tool-kit/compare/v0.2.3...v0.2.4)</small>

## [v0.2.3](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.2.3) - 2023-10-11

<small>[Compare with v0.2.2](https://github.com/nichuanfang/music-tool-kit/compare/v0.2.2...v0.2.3)</small>

## [v0.2.2](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.2.2) - 2023-10-11

<small>[Compare with v0.2.1](https://github.com/nichuanfang/music-tool-kit/compare/v0.2.1...v0.2.2)</small>

## [v0.2.1](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.2.1) - 2023-10-11

<small>[Compare with v0.2.0](https://github.com/nichuanfang/music-tool-kit/compare/v0.2.0...v0.2.1)</small>

## [v0.2.0](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.2.0) - 2023-10-11

<small>[Compare with v0.1.9](https://github.com/nichuanfang/music-tool-kit/compare/v0.1.9...v0.2.0)</small>

## [v0.1.9](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.1.9) - 2023-10-11

<small>[Compare with v0.1.8](https://github.com/nichuanfang/music-tool-kit/compare/v0.1.8...v0.1.9)</small>

## [v0.1.8](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.1.8) - 2023-10-11

<small>[Compare with v0.1.7](https://github.com/nichuanfang/music-tool-kit/compare/v0.1.7...v0.1.8)</small>

## [v0.1.7](https://github.com/nichuanfang/music-tool-kit/releases/tag/v0.1.7) - 2023-10-10

<small>[Compare with first commit](https://github.com/nichuanfang/music-tool-kit/compare/2844e3347a85a87ed8ae8d3fc95b85e96d5c1e4a...v0.1.7)</small>

18 changes: 14 additions & 4 deletions mk/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# !/usr/bin/env python3
import argparse
import pkg_resources
import asyncio
import os
import sys
Expand Down Expand Up @@ -280,9 +282,16 @@ async def search(name:str):
tasks = [
asyncio.create_task(search_youtube(name)),
asyncio.create_task(search_bilibili(name))]
result = await asyncio.gather(*tasks)

return result[0]+result[1]
# 如果出现异常 返回正常的结果 打印异常信息
results = await asyncio.gather(*tasks, return_exceptions=True)
if isinstance(results[0], Exception):
return results[1]
elif isinstance(results[1], Exception):
return results[0]
elif isinstance(results[0], list) and isinstance(results[1], list):
return []
else:
return results[0]+results[1]

# 提取伴奏
def extract_accompaniment(mp3path:str,model_name:str=None):
Expand Down Expand Up @@ -459,10 +468,11 @@ def main(args=None):
# download('https://www.bilibili.com/video/BV1yR4y1L7KN/?spm_id_from=333.1007.top_right_bar_window_default_collection.content.click')
# clip('青花瓷-周杰伦.mp3','00:00:00','00:00:30')
# loop = asyncio.get_event_loop()
# a= loop.run_until_complete(search("湖畔街-Falcom Sound Team J.D.K"))
# a= loop.run_until_complete(search("poi洗脑"))
# 转换为秒
# 调用异步函数search_bilibili_
# res = asyncio.run(search_bilibili("a lover's Concerto"))
# 获取执行的结果
# sync_meta()
# download('https://www.youtube.com/watch?v=iQzB5T_B_iI&list=PLXqdiA7ZTh9XZPoK7mwg5cJgITDR4ZlwP&index=2')
pass

0 comments on commit 1a1c13a

Please sign in to comment.