-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 mayudev | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# NyaaDesktop | ||
|
||
 | ||
 | ||
|
||
A simple desktop app for nyaa.si | ||
|
||
You can use this app, for example, to download multiple torrents at once if batches are not available, from for example SubsPlease or HorribleSubs (as long as the torrents themselves are not dead, this app will work, because it uses nyaa.si instead of HS site which is long dead [*]) | ||
|
||
Also, one other thing I find this app is better than just using the website is when you have to quickly peek at the description. | ||
|
||
## Requirements | ||
- Python 3.8+ | ||
- A torrent client (e.g. **Transmission**, **qBittorrent**. DON'T USE μTORRENT) | ||
|
||
### PySide6 | ||
|
||
This app requires PySide6 (Qt6 bindings for Python) installed in your system. It's recommended that you use the package provided by your distribution for best results. | ||
|
||
Unfortunately, Qt 6 is fairly recent and it seems only Arch provides one for now. | ||
- Arch Linux: `pacman -S pyside6` | ||
|
||
On other distributions, you can use pip: `pip install pyside6` | ||
|
||
## Installation | ||
```sh | ||
git clone https://github.com/mayudev/NyaaDesktop | ||
cd NyaaDesktop | ||
pip install -r requirements.txt | ||
# To run the app without installation do: | ||
python -m nyaadesktop | ||
# If you want to install, do: | ||
pip install . | ||
``` | ||
|
||
## Known issues | ||
- Freeze when trying to load a torrent with a lot of files | ||
- There is no icon | ||
- This app looks ugly pretty much everywhere other than Windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Desktop Entry] | ||
Name=NyaaDesktop | ||
Comment=A desktop application for nyaa.si | ||
Exec=.local/bin/nyaadesktop | ||
Type=Application | ||
StartupWMClass=nyaadesktop | ||
Keywords=nyaa; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
beautifulsoup4>=4.10.0 | ||
lxml>=4.7.1 | ||
requests>=2.27.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import setuptools | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="NyaaDesktop", | ||
version=0.1, | ||
author="mayudev", | ||
description="A desktop application for nyaa.si", | ||
long_description=long_description, | ||
license="MIT", | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/mayudev/NyaaDesktop", | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/mayudev/NyaaDesktop/issues", | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: POSIX :: Linux", | ||
"Environment :: X11 Applications :: Qt" | ||
], | ||
packages=['nyaadesktop', 'nyaadesktop.scraper', 'nyaadesktop.dialogs', 'nyaadesktop.tabs'], | ||
install_requires=[ | ||
'requests', | ||
'beautifulsoup4', | ||
'lxml' | ||
], | ||
entry_points= { | ||
'console_scripts': ['nyaadesktop=nyaadesktop.__main__:main'], | ||
}, | ||
python_requires=">=3.8" | ||
) |