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

V2.1.0 #22

Merged
merged 20 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .github/images/one-piece.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test

on:
push:
branches:
- master

pull_request:
branches:
- master

schedule:
# 6:00 A.M UTC == 9:00 AM EAT
- cron: '0 6 * * *'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
poetry install

- name: Lint with ruff
run: poetry run ruff .

- name: Run Tests
run: poetry run poe test_ddl
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.dev-garbage/
.setup-scripts/
.vscode/
.venv/
tests/
test-downloads/
__pycache__/
.ruff_cache/
.pytest_cache
allanime.py
marin.py
setups
build
dist
senpwai/test.py
senpwai/windows/test.py
senpwai/utils/test.py
46 changes: 15 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<h1 align="center">
Developer's Note
</h1>
<p align=center>
I know that Animepahe is broken but I have exams for about a month so I can't fix it right now
</p>

<h1 align="center">
<img align="center" height="80px" width="80px" src="src/assets/misc/senpwai-icon.png" alt="Senpwai-icon">
Senpwai
</h1>
<img align="center" height="80px" width="80px" src="https://raw.githubusercontent.com/SenZmaKi/Senpwai/master/.github/images/senpwai-icon.png" alt="senpwai-icon"> Senpwai</h1>
<p align="center">
A blazingly fast desktop app for batch downloading anime and auto-downloading new episodes upon release
</p>
Expand All @@ -28,18 +19,22 @@ A blazingly fast desktop app for batch downloading anime and auto-downloading ne
<a href="#links">Links</a>
</p>

![image](https://github.com/SenZmaKi/Senpwai/assets/90490506/04a9cfba-7961-48b8-b8ff-392aaef5b4d4)

<img align="center" src="https://raw.githubusercontent.com/SenZmaKi/Senpwai/master/.github/images/one-piece.png" alt="one-piece-screenshot">

## Installation
- **Cross-platform (Linux, Mac, Windows 10/11)**

Needs [Python 3.11](https://www.python.org/downloads/release/python-3111) installed.
```bash
pip install senpwai
```
- **Windows 10/11**

Download [the setup](https://github.com/SenZmaKi/Senpwai/releases/latest/download/Senpwai-setup.exe) then run it.

- **Linux/Mac**
- **Other**

You'll have to [build from source](#building-from-source).
[Build from source](#building-from-source).

## Features

Expand All @@ -64,30 +59,23 @@ Open a terminal and run the following commands.

1. **Set everything up.**

- Linux/Mac

```
git clone https://github.com/SenZmaKi/Senpwai && cd Senpwai && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
git clone https://github.com/SenZmaKi/Senpwai && cd Senpwai && pip install -r dev-requirements.txt && poetry install
```

- Windows (Command Prompt)

```
git clone https://github.com/SenZmaKi/Senpwai && cd Senpwai && python -m venv .venv && .venv\Scripts\activate && pip install -r requirements.txt
```

2. **Build the app into an executable.**
2. **Build the app into a binary.**

```
pip install cx_freeze==6.15.10 && python setup.py build
poetry run poe build_senpwai_binary
```

- The executable will be built in `Senpwai\build\Senpwai`
- The binary will be built in `Senpwai\build\Senpwai`

3. **Alternatively you can instead run the app directly via Python.**

```
cd src && python senpwai.py
poetry run senpwai
```

## Support
Expand All @@ -96,11 +84,6 @@ cd src && python senpwai.py
- You can also leave a star on the github for more weebs to know about it.
- Senpwai is open to pull requests, so if you have ideas for improvements, feel free to contribute!

## Sponsors
<p>
<a href="https://github.com/Adam1400"><img src="https://github.com/Adam1400.png" width="80px" alt="Adam1400"/></a>&nbsp;&nbsp;<a href="https://github.com/KeithBoehler"><img src="https://github.com/KeithBoehler.png" width="80px" alt="KeithBoehler" /></a>
</p>

## FAQ

<details> <summary> Why did you make this? </summary>
Expand All @@ -109,6 +92,7 @@ you have to click billions of links just to download one episode, so I made Senp
</details>

<details> <summary> What is HLS mode? </summary>

HLS mode attempts to fix the unstability of Gogoanime normal mode.
In HLS mode Gogoanime downloads are guaranteed to work, though with a few downsides:

Expand Down
54 changes: 0 additions & 54 deletions deployment-meta.txt

This file was deleted.

5 changes: 3 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cx_freeze==6.15.10
pigar==2.1.1
poetry==1.7.1
# Poetry plugins
# poetry-plugin-exports==1.6.0
37 changes: 18 additions & 19 deletions docs/senpcli-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@ The CLI alternative for Senpwai.

## Installation

- **Windows 10/11**
- **Cross-platform (Linux, Mac, Windows 10/11)**

Needs [Python 3.11](https://www.python.org/downloads/release/python-3111) installed.

Senpwai ships with the Senpcli executable preinstalled but you can install Senpcli as a completely seperate package by downloading and running [the setup](https://github.com/SenZmaKi/Senpwai/releases/latest/download/Senpcli-setup.exe).
Senpwai ships with the Senpcli pre-installed.
```bash
pip install senpwai
```


- **Windows 10/11**

If you're using the preinstalled version first add the Senpwai folder to your PATH environment variable. The folder is typically at "%LOCALAPPDATA%\Programs\Senpwai". Here is a [guide](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/) for adding a folder to PATH.
You can install Senpcli as a completely seperate package by downloading and running [the setup](https://github.com/SenZmaKi/Senpwai/releases/latest/download/Senpcli-setup.exe).

- **Linux/Mac**
- **Other**

You'll have to [build from source](#building-from-source).
[Build from source](#building-from-source).

## Usage

Expand Down Expand Up @@ -50,28 +58,19 @@ Open a terminal and run the following commands.

1. **Set everything up.**

- Linux/Mac

```
git clone https://github.com/SenZmaKi/Senpwai && cd Senpwai && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
```

- Windows (Command Prompt)

```
git clone https://github.com/SenZmaKi/Senpwai && cd Senpwai && python -m venv .venv && .venv\Scripts\activate && pip install -r requirements.txt
git clone https://github.com/SenZmaKi/Senpwai && cd Senpwai && pip install -r dev-requirements.txt && poetry install
```

2. **Build the tool into an executable.**
2. **Build the tool into a binary.**

```
pip install cx_freeze==6.15.10 && python setup.py --senpcli build
poetry run poe build_senpcli_binary
```

- The executable will be built in `Senpwai\build\Senpcli`
- The binary will be built in `Senpwai\build\Senpcli`

3. **Alternatively you can run the tool directly via Python.**

```
cd src && python senpcli.py --help
poetry run senpcli --help
```
1 change: 1 addition & 0 deletions docs/testing-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ python -m scrapers.test all --site pahe && python -m scrapers.test all --site go
- `--start_episode, -se`: Specify the starting episode number. Default: 1
- `--end_episode, -ee`: Specify the ending episode number. Default: 2
- `--verbose, -v`: Enable verbose mode for more detailed explanations of test results
- `--silent, -s`: Only output critical information
- `--help, -h`: Display help message

## Example:
Expand Down
10 changes: 0 additions & 10 deletions metadata.yml

This file was deleted.

Loading
Loading