Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
mayudev committed Feb 15, 2022
1 parent b4f37d0 commit faa5aa3
Showing 5 changed files with 104 additions and 0 deletions.
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) 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.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# NyaaDesktop

![License](https://img.shields.io/github/license/mayudev/NyaaDesktop)
![Version](https://img.shields.io/github/v/release/mayudev/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
7 changes: 7 additions & 0 deletions nyaadesktop.desktop
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;
3 changes: 3 additions & 0 deletions requirements.txt
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
34 changes: 34 additions & 0 deletions setup.py
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"
)

0 comments on commit faa5aa3

Please sign in to comment.