Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
taseikyo committed May 27, 2021
0 parents commit f1b2b67
Show file tree
Hide file tree
Showing 12 changed files with 914 additions and 0 deletions.
129 changes: 129 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
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
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/

# Translations
*.mo
*.pot

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

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.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/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Lewis Tian

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
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 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.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Bilibili 收藏夹下载器

基于 [annie](https://github.com/iawia002/annie) 和 PyQt6 实现批量下载 Bilibili 指定收藏夹下的视频

界面~~参考~~(抄) [amarjeetmalpotra/yt-downloader](https://github.com/amarjeetmalpotra/yt-downloader) 的代码

## Preview

| 描述 | 图片 |
|----------|-------------------------|
| 初始界面 | ![](images/img1.png) |
| 搜索过程 | ![](images/preview.gif) |
| 搜索结果 | ![](images/img2.png) |
| 下载过程 | ![](images/downloading.gif) |

## Installation

```Bash
git clone https://github.com/taseikyo/bili-favorite-downloader.git

# install PyQt6
pip install pyqt6

# install annie & ffmpeg
scoop install annie ffmpeg

# run the app
cd bili-favorite-downloader
python app.py
```

默认是多线程同时下载所有视频,可以修改为单线程下载(即下完一个再下第二个)

具体操作为将 `DownloadThread` 类的 `is_multithreads`[150 行左右](https://github.com/taseikyo/bili-favorite-downloader/blob/master/app.py#L150))改为 `False` 即可

还没有进行充分的测试,不知道会不会有什么问题()

## License

Copyright (c) 2021 Lewis Tian. Licensed under the MIT license.
106 changes: 106 additions & 0 deletions app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
* {
background-color: #fff;
font-family: 'Microsoft Yahei';
}
QWidget {
font-size: 15px;
border-radius: 4px;
}
QToolTip {
padding: 4px;
border: 1px solid #bababa;
}
QStatusBar {
font-size: 13px;
}
QStatusBar QPushButton {
background-color: none;
font-family: 'Segoe UI Symbol';
padding: 0 40px;
color: #333;
}
QStatusBar QPushButton:hover {
background-color: none;
color: #ff80ab;
}
QLineEdit {
padding: 4px 10px;
margin-right: 10px;
border: 2px solid #bababa;
font-size: 16px;
font-family: 'Segoe UI Symbol';
selection-background-color: #ff80ab;
}
QLineEdit:hover {
border-color: #808080;
}
QLineEdit:focus {
border-color: #ff80ab;
}
QMenu {
border: 1px solid #bababa;
padding: 5px;
}
QMenu::item {
padding: 3px 25px;
border-radius: 4px;
}
QMenu::item:selected {
color: #fff;
background-color: #ff80ab;
}
QPushButton {
width: 125px;
padding: 7px 0;
color: #fff;
border: none;
background-color: #ff80ab;
}
QPushButton:hover, QComboBox:hover {
background-color: #ff70a6;
}
QPushButton:pressed, QComboBox:pressed {
background-color: #fd649f;
}
QPushButton:disabled, QComboBox:disabled {
background-color: #ffe0ea;
}
QComboBox {
padding: 5.5px 30px 5.5px 45px;
color: #fff;
border: none;
background-color: #ff80ab;
}
QComboBox::drop-down {
border-radius: 0;
}
QComboBox:on {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
QComboBox QAbstractItemView {
border-radius: 0;
outline: 0;
}
QComboBox QAbstractItemView::item {
height: 33px;
padding-left: 42px;
background-color: #fff;
}
QComboBox QAbstractItemView::item:selected {
background-color: #ff80ab;
}
QProgressBar {
text-align: center;
}
QProgressBar::chunk {
background: #ff80ab;
border-radius: 4px;
}
QMessageBox QLabel {
font-size: 13px;
}
QMessageBox QPushButton {
width: 50px;
padding: 6px 25px;
}
Loading

0 comments on commit f1b2b67

Please sign in to comment.