Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复快速切换音乐,线程混乱问题,增加快速跳转快捷键 #842

Open
wants to merge 136 commits into
base: buffer
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
ddb3801
添加定时退出功能
caitinggui Jan 11, 2017
07d9309
修改定时时间单位
caitinggui Jan 11, 2017
09e72b4
update timing notify
caitinggui Jan 11, 2017
5b60bb6
update README.md
caitinggui Jan 14, 2017
43f6a7e
增加功能描述
caitinggui Jan 14, 2017
64c0f9b
use `pow` argument `modulo` instead of % (#452)
hldh214 Jan 18, 2017
9ec3efd
Adjust osdlyrics, fix #388
910JQK Jan 30, 2017
c045426
Fix pow (#478)
kigawas Feb 3, 2017
443430d
网易云音乐登陆地址更新
yaphone Mar 1, 2017
62136ed
bug fix
darknessomi Mar 2, 2017
dff7c3d
Merge pull request #498 from darknessomi/pr/497
darknessomi Mar 2, 2017
5cdbed6
[Release] 0.2.3.8
darknessomi Mar 2, 2017
47f8984
Merge pull request #499 from darknessomi/pr/497
darknessomi Mar 2, 2017
4728237
upgrade md
darknessomi Mar 2, 2017
e847b97
README.md版本错误
yaphone Mar 2, 2017
713db1b
Merge pull request #501 from yaphone/master
darknessomi Mar 2, 2017
25ee186
修复登陆接口,可能存在取不到session的情况,经测试,csrf_token为空时也可以正常登陆
yaphone Mar 2, 2017
dfc75eb
Merge pull request #502 from yaphone/master
darknessomi Mar 3, 2017
ea25f4c
[Release] 0.2.3.9
darknessomi Mar 3, 2017
c521af2
Do not resize terminal unless needed.
pro711 Mar 9, 2017
f1a5a42
Merge pull request #506 from pro711/master
darknessomi Mar 9, 2017
d0fdc0a
Merge pull request #476 from 910JQK/master
darknessomi Mar 9, 2017
4048068
Merge pull request #464 from caitinggui/base
darknessomi Mar 9, 2017
4b35e49
[fix]捕获通知命令无法找到的异常
Mar 14, 2017
ea8315f
捕获 IOError 防止异常退出
Mar 15, 2017
907caf1
[Fix]修复 Broken pipe 造成的程序异常退出
Mar 15, 2017
da963ee
add config for osdlyrics background area size
chih7 Mar 17, 2017
ebf94ef
Merge pull request #510 from sbugzu/master
darknessomi Mar 17, 2017
43c3872
Merge pull request #512 from chih7/master
darknessomi Mar 17, 2017
5786a10
[Release] 0.2.4.0
darknessomi Mar 17, 2017
a02b133
[fix] 搜索时报 UnicodeWarning
Apr 13, 2017
11d65b3
Moves argument parsing into start (#532)
timothyqiu Apr 24, 2017
df0dcc6
[new_feature]增加歌词双行显示功能
out0fmemory May 13, 2017
898aa52
[fix]1.修正在mpg123状态异常(mpg123进程空转,cpu占用很高)问题,此时kill process进行下一曲 2.修正io…
out0fmemory May 13, 2017
98f1e31
Merge pull request #551 from out0fmemory/fix_mpg123_bug
darknessomi Jun 3, 2017
bcdd6e6
Merge pull request #550 from out0fmemory/double_line_lyric
darknessomi Jun 3, 2017
7dfd3fe
[Release] 0.2.4.1
darknessomi Jun 3, 2017
cdc5b2b
fix: 修正强制杀死mpg123时的日志异常
out0fmemory Jun 19, 2017
4481d34
fix: 修正在其他linux系统上播放问题
out0fmemory Jun 19, 2017
4ef49f6
fix: 修正在其他linux系统上播放问题
out0fmemory Jun 19, 2017
213f5a1
Merge pull request #568 from out0fmemory/fix_kill_mpg123_log_error
darknessomi Jun 22, 2017
33e3494
feat: 优化文案,增加评论点赞数显示
out0fmemory Jul 3, 2017
634afb2
feat: 修改点赞符号,在unbunt上支持不好
out0fmemory Jul 14, 2017
38b5945
Merge pull request #527 from jinxingxing/master
darknessomi Jul 15, 2017
8f9fd95
Merge pull request #585 from out0fmemory/feat_hot
darknessomi Jul 15, 2017
3d85941
添加无法登录解决方法到readme
Sep 9, 2017
bb9d91c
fix print default in centos7
Nov 24, 2017
e75a9eb
Merge pull request #609 from wugh/master
41tair Nov 25, 2017
7e9c500
fix: 修正各个播放列表只有一首歌曲的问题
out0fmemory Nov 27, 2017
686dffc
Merge pull request #631 from out0fmemory/feat-fix.playlist.only.one.song
darknessomi Nov 28, 2017
71a3f14
get playlist detail add limit
darknessomi Nov 28, 2017
c310ec4
[Release] 0.2.4.2
darknessomi Nov 28, 2017
f39cc89
Merge pull request #636 from darknessomi/develop
41tair Dec 4, 2017
1b195e3
fix:修复了 精选歌单>分类精选 功能下,lxml包依赖的缺失
Dec 11, 2017
d1f5949
Merge pull request #639 from gogoforit/master
darknessomi Dec 11, 2017
b68cacb
fix:修正了中文字符计算错误的问题
po1ng Dec 12, 2017
e6a5aed
new_feature:当不存在前进菜单时,不将该目录添加到stack中,并将光标留在本页面
po1ng Dec 13, 2017
786db1e
修复Issue#601双行翻译歌词的问题
pkumza Dec 20, 2017
e67a787
Merge pull request #643 from pkumza/master
darknessomi Dec 20, 2017
b51629c
Update api.py
im0qianqian Dec 22, 2017
02d94d9
Merge pull request #644 from im0qianqian/patch-1
41tair Dec 22, 2017
623cb2d
Merge pull request #640 from gogoforit/master
darknessomi Dec 22, 2017
fb94eb0
README: add command for log checking
kmahyyg Jan 2, 2018
4682d1a
Merge pull request #650 from kmahyyg/master
41tair Jan 10, 2018
baeb692
修复问题: https://github.com/darknessomi/musicbox/issues/642
zexi Jan 27, 2018
fe5f19d
Merge pull request #664 from Zexi/master
darknessomi Feb 7, 2018
06b9434
add git ignore
41tair Feb 9, 2018
1214c6b
fix issue 474
41tair Feb 9, 2018
a2d349f
Merge pull request #673 from darknessomi/develop
41tair Feb 9, 2018
2079a37
fix 618 627
41tair Feb 9, 2018
a9f332f
Merge pull request #674 from darknessomi/develop
41tair Feb 9, 2018
79eebef
add remind about copyright
41tair Feb 9, 2018
9aa1f8f
Merge pull request #675 from darknessomi/develop
41tair Feb 9, 2018
707ff7b
Fix version check. #690 #691 #688
geekrainy May 1, 2018
23bedaf
Merge pull request #694 from geekrainy/fix/checkversion
darknessomi May 1, 2018
502d3e7
Refactor api.py and change directory structure (#698)
kigawas May 21, 2018
6fc1821
update changelog
darknessomi May 21, 2018
f4a7dfa
Update README.md
kigawas May 25, 2018
83fbac7
[Fix] refactor menu
kigawas May 29, 2018
50872ea
Refactor lots of code, use new version api
kigawas Jun 3, 2018
18d27a6
Refactor some player.py and fix some menu
kigawas Jun 4, 2018
bcaf70d
Check data in dig_info
kigawas Jun 5, 2018
3f55487
Update version and README
kigawas Jun 5, 2018
b55638e
Minor bug fix (#706)
kigawas Jun 5, 2018
57d0fde
Config file bug fix (#710)
kigawas Jun 7, 2018
a55d369
database bugfix
darknessomi Jun 8, 2018
b2e4230
version update
darknessomi Jun 8, 2018
4820cb0
Merge pull request #714 from darknessomi/database-login-fix
darknessomi Jun 8, 2018
15b0ca8
playback inconsistent with display fix
a-mushroom Jun 12, 2018
ce1a601
load playlist crash fix
a-mushroom Jun 12, 2018
9609829
Fix bug in suffler_order.
Catofes Jun 21, 2018
2e0d54c
Merge remote-tracking branch 'pullrequest/master'
Catofes Jun 21, 2018
66c7fd1
Fix bug in cache.
Catofes Jun 21, 2018
5db4348
Fix bug in player.
Catofes Jun 21, 2018
3af2f30
Fix play and pause bug.
Catofes Jun 21, 2018
2290521
Add version 0.2.5.3
Catofes Jun 21, 2018
2bcee2a
fix: fix python2.7* random mode next song crash
out0fmemory Jun 27, 2018
cdcbd50
Merge pull request #730 from out0fmemory/fix-random.next.song.crash
darknessomi Jun 28, 2018
273bc1e
mpg123 版本问题 (#749)
Jevade Aug 31, 2018
8ce4a7e
1、修复歌单详情只有一首歌;2、缓存文件路径修改至~/.netseae-musicbox/nemcache.sqlite,而不是当前文件夹…
anhoder Nov 20, 2018
efd4cbc
修复20分钟后播放问题;修复切换歌单时可能出现的切歌失败问题 (#769)
anhoder Nov 22, 2018
b859a93
修复搜索歌曲出错 (#771)
anhoder Nov 26, 2018
445b3e0
修复“搜索->网易精选集” (#772)
anhoder Nov 27, 2018
4ff9276
update version to 0.2.5.4
darknessomi Nov 28, 2018
23dffd8
Merge pull request #773 from darknessomi/version-0.2.5.4
darknessomi Nov 28, 2018
a0689be
[Add] circle ci (#778)
kigawas Dec 27, 2018
fca156c
Update cache.py (#780)
kigawas Dec 30, 2018
900d9bd
Update README (#781)
kigawas Dec 31, 2018
8780d8f
Merge branch 'master' of https://github.com/darknessomi/musicbox
darknessomi Jan 5, 2019
1234e66
fix copyright issue (#798)
oldoldstone Mar 18, 2019
8a7c1cf
fix:修复登录460问题 (#805)
lozzo Apr 14, 2019
9d58201
Update README.md (#808)
kigawas Apr 15, 2019
d09e2f0
修复 Python 3 登录问题 (#825)
zhangjunphy Sep 1, 2019
026e65c
增加当前列表模糊搜索,修复连续跳转Bug (#858)
tonyfettes Aug 19, 2020
d0f6ddf
改善模糊搜索逻辑,以及一些小的 Bug 修复和小功能的添加 (#862)
tonyfettes Aug 26, 2020
5ebaa1d
修复 #864 (#865)
tonyfettes Aug 28, 2020
15bf131
fix: handle SIGTERM signal. (#871)
kaseiwang Sep 18, 2020
1c15940
修复了手机无法登录的Bug,添加countrycode='86'必选属性 (#876)
zhangwenxuan322 Oct 4, 2020
3108b23
Drop Python 2.7 (#877)
kigawas Oct 4, 2020
d960367
remove setup.py (#879)
kigawas Oct 4, 2020
652e111
clean (#881)
kigawas Oct 4, 2020
622998f
Create python-package.yml (#880)
kigawas Oct 4, 2020
2f61d72
fix poetry (#882)
kigawas Oct 10, 2020
70ee83b
Fix get version (#884)
kigawas Oct 11, 2020
6d9766a
修复手机登录api (#885)
zhangwenxuan322 Oct 13, 2020
5aadfb6
release: 0.3.0
darknessomi Oct 23, 2020
033963c
修复登录失败,code 250,当前登录失败,请稍后再试 (#892)
nnnewb Dec 16, 2020
c904537
支持Qt 5 (#894)
shih-liang Dec 21, 2020
9fcaf11
docs: fix simple typo, scoll -> scroll (#895)
timgates42 Dec 22, 2020
cd91808
fix build (#898)
kigawas Jan 3, 2021
028d237
fix login (#901)
kigawas Jan 18, 2021
cd2874e
Update README.md (#913)
max27149 Apr 7, 2021
60deb52
fix make song name panic (#925)
Aug 8, 2021
a0a6969
fix: parse invalid lyric timestamp failed (#938)
hoyho Jan 5, 2022
1618998
fix: 32 位系统无法保存 cookie (#941)
chen310 May 1, 2022
592e13d
针对主播电台的修复,添加搜索主播电台的功能 (#928)
moomiji Jun 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Build

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.4
- uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install
poetry build
- name: Test with pytest
run: poetry run pytest -s
- name: Run cli
run: poetry run musicbox -v
env:
TERM: xterm
130 changes: 104 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
Expand All @@ -29,47 +39,115 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject
*.pot

# Django stuff:
*.log
*.pot
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# ctags
tags
# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

src/.idea/*
.idea/*
# Cython debug symbols
cython_debug/

# ignore mac file
.DS_Store
src/.DS_Store
# vscode
.vscode/

# ignore demo
out.gif
nemcache.sqlite

# ignore swp files
NEMbox/*.swp
#Jetbrains
.idea

# ignore TEST files
TEST
# Vim
.undodir
Session.vim
.vim

# virtualenv
venv
test_login.py
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
exclude: venv

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: check-yaml

- repo: https://github.com/asottile/reorder_python_imports
rev: v2.3.6
hooks:
- id: reorder-python-imports
args: ["--py3-plus"]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
# allow "imported but unused" for pre-commit, forbid it elsewhere e.g. in vscode
args: ["--config=setup.cfg", "--ignore=E402,F401"]
48 changes: 41 additions & 7 deletions Change Log.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
## 更新日志
# 更新日志

2018-05-21 版本 0.2.4.3 更新依赖,错误修复

2017-11-28 版本 0.2.4.2 更新获取歌曲列表的api

2017-06-03 版本 0.2.4.1 修正mpg123状态异常导致的cpu占用,增加歌词双行显示功能

2017-03-17 版本 0.2.4.0 修复通知可能造成的崩溃

2017-03-03 版本 0.2.3.9 邮箱用户登录修复

2017-03-02 版本 0.2.3.8 登录接口修复

2016-11-24 版本 0.2.3.7 新增背景色设置

2016-11-07 版本 0.2.3.6 已知错误修复

2016-10-16 版本 0.2.3.5 新增进入歌曲专辑功能

2016-10-13 版本 0.2.3.4 新增查看歌曲评论

2016-09-26 版本 0.2.3.3 keybinder 错误修复

2016-09-15 版本 0.2.3.2 已知错误修复

2016-09-12 版本 0.2.3.1 已知错误修复

2016-09-11 版本 0.2.3.0 Python 2 和 3 支持

2016-05-09 版本 0.2.2.10 修复最后一行歌名过长的问题

2016-05-08 版本 0.2.2.9 缓存问题修复

2016-05-07 版本 0.2.2.8 解决通知在Gnome桌面持续驻留(#303)的问题

2016-05-07 版本 0.2.2.6 已知错误修复

Expand Down Expand Up @@ -48,15 +82,15 @@

2015-10-14 版本 0.1.9.7 新增歌曲播放提醒

2015-10-13 版本 0.1.9.6 修复因 cookie 过期导致的登陆问题
2015-10-13 版本 0.1.9.6 修复因 cookie 过期导致的登录问题

2015-10-13 版本 0.1.9.5 新增自定义全局快捷键功能

2015-09-25 版本 0.1.9.4 修复部分列表无法暂停问题

2015-09-25 版本 0.1.9.2 新增版本检查和更新提醒功能

2015-09-24 版本 0.1.9.0 优化登陆逻辑,修复每日推荐的登陆问题
2015-09-24 版本 0.1.9.0 优化登录逻辑,修复每日推荐的登录问题

2015-09-23 版本 0.1.8.5 优化电台FM功能逻辑

Expand All @@ -80,7 +114,7 @@

2015-08-02 版本 0.1.6.2 新增显示播放进度

2015-07-30 版本 0.1.6.0 修复由于接口更换导致的用户登陆问题
2015-07-30 版本 0.1.6.0 修复由于接口更换导致的用户登录问题

2015-06-17 版本 0.1.5.6 优化对过长歌曲信息的显示

Expand All @@ -102,7 +136,7 @@

2015-03-18 版本 0.1.3.3 修复Ubuntu等系统SSL登录报错问题

2015-02-28 版本 0.1.3.2 修复170等新增号段手机用户无法登陆的问题
2015-02-28 版本 0.1.3.2 修复170等新增号段手机用户无法登录的问题

2015-02-05 版本 0.1.3.1 修复登录无法保存的问题

Expand All @@ -114,6 +148,6 @@

2015-01-08 版本 0.1.2.0 增加音量控制

2015-01-03 版本 0.1.1.1 修复部分仅手机注册用户登录无法登陆 (感谢Catofes反馈)
2015-01-03 版本 0.1.1.1 修复部分仅手机注册用户登录无法登录 (感谢Catofes反馈)

2015-01-02 版本 0.1.1.0 新增退出并清除用户信息功能
2015-01-02 版本 0.1.1.0 新增退出并清除用户信息功能
12 changes: 6 additions & 6 deletions LICENSE.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### The MIT License (MIT)
MIT License

CopyRight (c) 2015 omi &lt;<a href="4399.omi@gmail.com">4399.omi@gmail.com</a>&gt;
Copyright (c) 2020 omi <4399.omi@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading