From b83c22b267c9c4aebfe742663cae2fea693d4073 Mon Sep 17 00:00:00 2001 From: Noe <101264710+Vxrtrauter@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:20:32 +0100 Subject: [PATCH 1/4] q --- download.py | 1 + 1 file changed, 1 insertion(+) diff --git a/download.py b/download.py index 0a7f9a2..77a9446 100644 --- a/download.py +++ b/download.py @@ -48,3 +48,4 @@ magnet_uri = "magnet:?xt=urn:btih:7FBF03CCC9115260DC50102E5A31E83E91422A79&dn=Re keyboard.on_press_key("d", startDownload, suppress=False) keyboard.on_press_key("s", pauseDownload, suppress=False) keyboard.on_press_key("q", pauseDownload, terminate) +keyboard.wait("q") From 1711c6011de089ea5989b5474c6b7752568649f2 Mon Sep 17 00:00:00 2001 From: Noe <101264710+Vxrtrauter@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:21:45 +0100 Subject: [PATCH 2/4] rm q --- download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.py b/download.py index 77a9446..0e25e57 100644 --- a/download.py +++ b/download.py @@ -47,5 +47,5 @@ magnet_uri = "magnet:?xt=urn:btih:7FBF03CCC9115260DC50102E5A31E83E91422A79&dn=Re keyboard.on_press_key("d", startDownload, suppress=False) keyboard.on_press_key("s", pauseDownload, suppress=False) -keyboard.on_press_key("q", pauseDownload, terminate) + keyboard.wait("q") From 41eb1edd20a23f2d631a54fbe9b4546c6d9b6476 Mon Sep 17 00:00:00 2001 From: Vxrtrauter <101264710+Vxrtrauter@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:24:39 +0100 Subject: [PATCH 3/4] Delete __pycache__ directory --- __pycache__/download.cpython-313.pyc | Bin 2157 -> 0 bytes __pycache__/gui.cpython-313.pyc | Bin 144 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 __pycache__/download.cpython-313.pyc delete mode 100644 __pycache__/gui.cpython-313.pyc diff --git a/__pycache__/download.cpython-313.pyc b/__pycache__/download.cpython-313.pyc deleted file mode 100644 index a437b76bc1d2ca1d2882a0d1e8df45c8b274688b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2157 zcmb7F&2Jk;6d%`X$Fbuy76p-3D4~)|qSbD^Ydf(cLKNFc3r(V6Qz6izXuLbIM_%u& zW@qztK!FRCOSvHRU*HBO{*F*Y!uC?B5)u-JR5@~CHul!WbtN-e?Yxm{A2u7?+T+W36_yN>FEp#8y&K#m44OE4IwKv}ee4k4i9JfL3S}j}? zYLQ|%&*k}p3ReC z8$GUo(#EQ91$1xbyl?kb0hJGTs9CTj0gwQ*pf*O6+=_Psj^3;#13PJ~5t@(vMu9EQKY34jOY!=B(TJ;5fFc~J-H6tQ{1i$aQ_svl2C60%_3L=v_2 z<2NOLl1%I{WJ%C8R~U8CaY~X5Ojo{KsE`B8B+zi+Tm*nNY*>gbuO6}$ms-nphMUVv z8>Nj*wp=b36(z4OW-8@;M#-q_`L(RFUdXN&m7J=sEfwz=)=CvY<47b_+$JoYT@yEJ zI~B3yT84?lv|89-Tr3oFoGOVqv9eiq(&|QuSgwPdtIbcbWsn0$ToO0%VOlMVTMsrr z!HSwzi()!o+Q95Crlwd$Hq=}Gc@3FJXLuipfghqI?orYfvpIQ5yjx1=D|Z-OaSfZB z!?p2`*vMjp%G^=Dw^&>(4stNc#UmNSwXh~4EvHZZ z2pCv-`_ zkKT1D_Ttbmc021I!KMFhc)9Yj_Q2r|Yxhyh*~S*pD#&RuVrx5?LWVXW?_E5OS|DGx zkG$CXZDP14`hfB`2Kdjb^N{~8!l6*;DM&sAsb{gtNAd6C=R*9Ot*^JvlQZYZ)cN() zi!mV*y$nakubo6Lra&lh2Bv=HU+S~pz~|2I<5Rv_+|Cy)!&8ki!eytyoiFy!y6~@^TgCy;?`;6*5i+!B;NZfM*TPT EU!pN^qW}N^ diff --git a/__pycache__/gui.cpython-313.pyc b/__pycache__/gui.cpython-313.pyc deleted file mode 100644 index 847a9a2008bfbbdb1b27fbad54ac8048aa2276d6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 144 zcmey&%ge<81WUihri19mAOZ#$p^VQgK*m&tbOudEzm*I{OhDdekkl=GXRDad;?$zz z81K~VV!zD1{1}(i;_QgjEsy$%s>_Z2LK{w From 859acd5d08a558450fef5020674f1aacfa857417 Mon Sep 17 00:00:00 2001 From: Vxrtrauter <101264710+Vxrtrauter@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:27:55 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 16b4f35..605c430 100644 --- a/README.md +++ b/README.md @@ -1 +1,73 @@ -# PirateLauncher +# PirateLauncher - A Download Manager/Launcher + +## Description +PirateLauncher is a Python-based tool that simplifies downloading content using the Aria2 RPC interface. It provides keyboard shortcuts for managing downloads, including starting, pausing, and resuming. The launcher integrates seamlessly with the Aria2 service and displays download statuses in real-time. + +## Features +- Start downloads via a predefined magnet URI. +- Pause and resume all active downloads using keyboard shortcuts. +- View detailed download information (name, speed, and status). +- Automatically launches Aria2 with RPC enabled for hassle-free operation. + +## Requirements +- Python 3.x +- `aria2c` (installed and available in your PATH) +- Python libraries: + - `aria2p` + - `keyboard` + +## Installation +1. Ensure Python 3.x is installed on your system. +2. Install Aria2: + ```bash + sudo apt install aria2 # For Debian/Ubuntu + brew install aria2 # For macOS + choco install aria2 # For Windows + ``` +3. Install the required Python libraries: + ```bash + pip install aria2p keyboard + ``` + +## Usage +1. Clone or download PirateLauncher to your local machine. +2. Run the launcher: + ```bash + python pirate_launcher.py + ``` +3. Use the following keyboard controls: + - Press **`d`** to start/resume a download. + - Press **`s`** to pause all downloads. + - Press **`q`** to quit the launcher. + +## Workflow +- PirateLauncher initializes an Aria2 RPC client to connect to a local `aria2c` instance. +- It launches Aria2 as a subprocess with RPC enabled, directing downloads to the system's Downloads folder. +- Users can control downloads using predefined keyboard shortcuts. +- The launcher monitors and prints download details, including speed and status, in real time. + +## Configuration +- To use a different magnet URI, update the `magnet_uri` variable in the script. +- Ensure the RPC port (default: 6800) is open and accessible. + +## Example +Run the following command to launch PirateLauncher and control downloads: + +```bash +python pirate_launcher.py +``` + +Press `d` to start the predefined download, `s` to pause, and `q` to quit. + +## Notes +- Aria2 must be installed and accessible from your command line. +- Edit the `magnet_uri` variable to set your desired download link. +- This tool is for educational purposes only. Use it responsibly. + +## License +PirateLauncher is licensed under the MIT License. Refer to the LICENSE file for more information. + +--- + +**Disclaimer:** PirateLauncher is intended for legal and ethical use only. Ensure compliance with applicable laws and regulations when using this tool. +