This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several Changes See Changelog For More
- Loading branch information
360modder
committed
Sep 24, 2021
1 parent
e985b21
commit 14e005a
Showing
12 changed files
with
269 additions
and
211 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 |
---|---|---|
|
@@ -108,3 +108,5 @@ venv.bak/ | |
.mypy_cache/ | ||
|
||
##my files | ||
temptsfiles | ||
merged.ts |
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
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
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,25 @@ | ||
VenvActivate := "./env/Scripts/activate.bat" | ||
|
||
.PHONY: requirements docs venv package | ||
|
||
requirements: | ||
@pip install --upgrade pip | ||
@pip install virtualenv | ||
@pip install -r requirements.txt | ||
@pip install typer-cli | ||
|
||
docs: | ||
@typer vsdownload/vsdownload.py utils docs --output CLI-API.md | ||
|
||
venv: | ||
@python -m venv env | ||
@$(VenvActivate) && python -m pip install --upgrade pip | ||
@$(VenvActivate) && python -m pip install pyinstaller | ||
@$(VenvActivate) && python -m pip install -r requirements.txt | ||
|
||
package: venv | ||
@$(VenvActivate) && pyinstaller main.py --name vsdownload --onefile | ||
@powershell -C "Remove-Item env -Recurse" | ||
@powershell -C "Remove-Item __pycache__ -Recurse" | ||
@powershell -C "Remove-Item build -Recurse" | ||
@powershell -C "Remove-Item vsdownload.spec" |
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
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import vsdownload.vsdownload | ||
|
||
vsdownload.vsdownload.console_script() | ||
|
||
# some test commands (root) | ||
# python main.py --help | ||
# python main.py save https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/index_0_av.m3u8 | ||
|
||
# resumable downloading | ||
# python main.py save https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/index_0_av.m3u8 --no-cleanup |
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
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 @@ | ||
{ | ||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36" | ||
} |
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
Oops, something went wrong.