Skip to content

Commit 7a23f0e

Browse files
committed
update readme
1 parent 6bf2263 commit 7a23f0e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,21 @@ options:
2727
Sets the download directory, default is `./output`.
2828
--urls URLS [URLS ...]
2929
The list of URLs to download.
30-
--preset {genshin} Use a predefined download address. Currently supported presets include: 'genshin' - Zip packages for Genshin Impact updates. Leave blank to manually specify the download address. (Python only)
30+
--preset {genshin,zzz,bh3,sr}
31+
Use a predefined download address. Leave blank to manually specify the download address. (Python only)
32+
--type {major,patch} Preset type, default is `major`. [More detail](https://hyp-api.mihoyo.com/hyp/hyp-connect/api/getGamePackages?launcher_id=jGHBHlcOq1) (Python only)
3133
```
3234

3335
### Example
3436
```
35-
stream --urls https://foo.com/bar.zip --log-level INFO
37+
stream.exe --preset zzz --output-dir F:\zzz
3638
```
3739

3840

3941
## Build
4042
### C++
41-
1. Install [xmake](https://github.com/xmake-io/xmake?tab=readme-ov-file#installation) and [vcpkg](https://github.com/microsoft/vcpkg?tab=readme-ov-file#getting-started) first.
42-
2. Set `VCPKG_ROOT` to the path of vcpkg.
43+
1. Install [xmake](https://github.com/xmake-io/xmake?tab=readme-ov-file#installation) and [vcpkg](https://github.com/microsoft/vcpkg?tab=readme-ov-file#getting-started)
44+
2. Set `VCPKG_ROOT` to the path of vcpkg
4345

4446
3. Ubuntu should install pkg-config first
4547
```shell
@@ -53,7 +55,7 @@ stream --urls https://foo.com/bar.zip --log-level INFO
5355
```
5456

5557
### Python
56-
1. Install nuikta first
58+
1. Install nuikta
5759
```shell
5860
pip3 install nuitka
5961
```

Diff for: python/stream.py

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def parse_presets(game, download_type):
149149
'zzz':'x6znKlJ0xK'
150150
}
151151
data = requests.get(f"https://hyp-api.mihoyo.com/hyp/hyp-connect/api/getGamePackages?game_ids[]={game_id[game]}&launcher_id=jGHBHlcOq1").json()
152-
zip_list = GamePackage(**data["data"]["game_packages"][0]).main.major.game_pkgs
153152
main = GamePackage(**data["data"]["game_packages"][0]).main
154153

155154
try:

0 commit comments

Comments
 (0)