Skip to content

Commit 138b86f

Browse files
committed
0.14.1 - Rename VRCDS to NSVR
1 parent e14b403 commit 138b86f

File tree

8 files changed

+235
-210
lines changed

8 files changed

+235
-210
lines changed

Cargo.lock

Lines changed: 200 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vrc-log"
3-
version = "0.14.0"
3+
version = "0.14.1"
44
authors = ["Shayne Hartford <shaybox@shaybox.com>"]
55
edition = "2021"
66
description = "VRChat Local Avatar ID Logger"
@@ -24,7 +24,7 @@ crossterm = { version = "0.29", optional = true }
2424
derive-config = { version = "2", features = ["dirs", "toml"] }
2525
discord-presence = { version = "2", optional = true }
2626
futures = "0.3"
27-
inquire = "0.7"
27+
inquire = "0.8"
2828
lazy-regex = "3"
2929
notify = "8"
3030
parking_lot = "0.12"
@@ -40,22 +40,22 @@ tracing = "0.1"
4040
tracing-subscriber = { version = "=0.3.19", features = ["env-filter", "time"] }
4141

4242
[target.'cfg(windows)'.dependencies]
43-
windows = { version = "0.61", features = [
43+
windows = { version = "0.62", features = [
4444
"Win32_Foundation",
4545
"Win32_Security",
4646
"Win32_System_Threading",
4747
] }
4848

4949
[features]
50-
default = ["cache", "avtrdb", "vrcdb", "vrcds", "vrcwb", "paw", "title", "rustls-tls"]
50+
default = ["cache", "avtrdb", "nsvr", "paw", "vrcdb", "vrcwb", "title", "rustls-tls"]
5151

5252
# VRChat Avatar Database Providers
5353
cache = ["dep:tokio-rusqlite-new"]
5454
avtrdb = ["dep:reqwest", "discord"]
55+
nsvr = ["dep:reqwest", "discord"]
56+
paw = ["dep:reqwest"]
5557
vrcdb = ["dep:reqwest", "discord"]
56-
vrcds = ["dep:reqwest", "discord"]
5758
vrcwb = ["dep:reqwest", "discord"]
58-
paw = ["dep:reqwest"]
5959

6060
discord = ["dep:discord-presence", "dep:cached"]
6161
title = ["dep:crossterm"]

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ You must manually close it to scan the collected avatars, it will re-open automa
5151
### Supported Avatar Database Providers
5252

5353
- [avtrDB - Avatar Search] - [Discord](https://discord.gg/ZxB6w2hGfU) / [VRCX](https://api.avtrdb.com/v1/avatar/search/vrcx) / [Web](https://avtrdb.com)
54+
- [NSVR - NekoSune Community] - [VRCX](https://avtr.nekosunevr.co.uk/vrcx_search) / [Web](https://avtr.nekosunevr.co.uk)
55+
- [PAW - Puppy's Avatar World] - [Discord](https://discord.gg/zHhs4nQYxX) / [VRCX](https://paw-api.amelia.fun/vrcx_search) / [Web](https://paw.amelia.fun)
5456
- [VRCDB - Avatar Search] - [Discord](https://discord.gg/q427ecnUvj) / [VRCX](https://vrcx.vrcdb.com/avatars/Avatar/VRCX) / [Web](https://vrcdb.com) / [World](https://vrchat.com/home/world/wrld_1146f625-5d42-40f5-bfe7-06a7664e2796)
55-
- [VRCDS - Project Dark Star] - [VRCX](https://avtr.nekosunevr.co.uk/vrcx_search) / [Web](https://avtr.nekosunevr.co.uk)
5657
- [VRCWB - World Balancer] - [Discord](https://discord.gg/Uw7aAShdsp) / [VRCX](https://avatar.worldbalancer.com/vrcx_search.php) / [Web](https://avatar.worldbalancer.com/search.php)
57-
- [PAW - Puppy's Avatar World] - [Discord](https://discord.gg/zHhs4nQYxX) / [VRCX](https://paw-api.amelia.fun/vrcx_search) / [Web](https://paw.amelia.fun)
5858

5959
#### Unsupported Avatar Database Providers
6060

@@ -64,18 +64,18 @@ You must manually close it to scan the collected avatars, it will re-open automa
6464

6565
Additional contributions welcome, please open an issue, pull request, or join Discord.
6666

67+
[VRCX]: https://github.com/vrcx-team/VRCX?tab=readme-ov-file#--vrcx
68+
6769
[avtrDB - Avatar Search]: https://avtrdb.com
6870

69-
[Just H Party]: https://avtr.just-h.party
71+
[NSVR - NekoSune Community]: https://avtr.nekosunevr.co.uk
7072

71-
[Prismic's Avatar Search]: https://vrchat.com/home/world/wrld_57514404-7f4e-4aee-a50a-57f55d3084bf
73+
[PAW - Puppy's Avatar World]: https://paw.amelia.fun
7274

7375
[VRCDB - Avatar Search]: https://vrcdb.com/
7476

75-
[VRCDS - Project Dark Star]: https://avtr.nekosunevr.co.uk
76-
7777
[VRCWB - World Balancer]: https://avatar.worldbalancer.com
7878

79-
[VRCX]: https://github.com/vrcx-team/VRCX?tab=readme-ov-file#--vrcx
79+
[Just H Party]: https://avtr.just-h.party
8080

81-
[PAW - Puppy's Avatar World]: https://paw.amelia.fun
81+
[Prismic's Avatar Search]: https://vrchat.com/home/world/wrld_57514404-7f4e-4aee-a50a-57f55d3084bf

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ pub async fn process_avatars(
152152
ProviderKind::CACHE => None,
153153
#[cfg(feature = "avtrdb")]
154154
ProviderKind::AVTRDB => provider!(AvtrDB::new(&settings)),
155+
#[cfg(feature = "nsvr")]
156+
ProviderKind::NSVR => provider!(NSVR::new(&settings)),
155157
#[cfg(feature = "paw")]
156158
ProviderKind::PAW => provider!(Paw::new(&settings)),
157159
#[cfg(feature = "vrcdb")]
158160
ProviderKind::VRCDB => provider!(VrcDB::new(&settings)),
159-
#[cfg(feature = "vrcds")]
160-
ProviderKind::VRCDS => provider!(VrcDS::new(&settings)),
161161
#[cfg(feature = "vrcwb")]
162162
ProviderKind::VRCWB => provider!(VrcWB::new(&settings)),
163163
})

src/provider/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ use strum::{Display, EnumIter};
77
pub mod avtrdb;
88
#[cfg(feature = "cache")]
99
pub mod cache;
10+
#[cfg(feature = "nsvr")]
11+
pub mod nsvr;
1012
#[cfg(feature = "paw")]
1113
pub mod paw;
1214
#[cfg(feature = "vrcdb")]
1315
pub mod vrcdb;
14-
#[cfg(feature = "vrcds")]
15-
pub mod vrcds;
1616
#[cfg(feature = "vrcwb")]
1717
pub mod vrcwb;
1818

@@ -25,15 +25,15 @@ pub enum ProviderKind {
2525
#[cfg(feature = "avtrdb")]
2626
#[strum(to_string = "avtrDB - Avatar Search")]
2727
AVTRDB,
28+
#[cfg(feature = "nsvr")]
29+
#[strum(to_string = "NSVR - NekoSune Community")]
30+
NSVR,
2831
#[cfg(feature = "paw")]
2932
#[strum(to_string = "PAW - Puppy's Avatar World")]
3033
PAW,
3134
#[cfg(feature = "vrcdb")]
3235
#[strum(to_string = "VRCDB - Avatar Search")]
3336
VRCDB,
34-
#[cfg(feature = "vrcds")]
35-
#[strum(to_string = "VRCDS - Project Dark Star")]
36-
VRCDS,
3737
#[cfg(feature = "vrcwb")]
3838
#[strum(to_string = "VRCWB - World Balancer")]
3939
VRCWB,
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ use crate::{
1313

1414
const URL: &str = "https://avtr.nekosunevr.co.uk/v1/vrchat/avatars/store/putavatarExternal";
1515

16-
pub struct VrcDS<'a> {
16+
pub struct NSVR<'a> {
1717
settings: &'a Settings,
1818
client: Client,
1919
}
2020

21-
impl<'a> VrcDS<'a> {
21+
impl<'a> NSVR<'a> {
2222
#[must_use]
2323
pub fn new(settings: &'a Settings) -> Self {
2424
Self {
@@ -29,9 +29,9 @@ impl<'a> VrcDS<'a> {
2929
}
3030

3131
#[async_trait]
32-
impl Provider for VrcDS<'_> {
32+
impl Provider for NSVR<'_> {
3333
fn kind(&self) -> ProviderKind {
34-
ProviderKind::VRCDS
34+
ProviderKind::NSVR
3535
}
3636

3737
async fn check_avatar_id(&self, _avatar_id: &str) -> Result<bool> {
@@ -72,6 +72,11 @@ impl Provider for VrcDS<'_> {
7272
let unique = match status {
7373
StatusCode::OK => false,
7474
StatusCode::NOT_FOUND => true,
75+
StatusCode::TOO_MANY_REQUESTS => {
76+
warn!("[{kind}] 429 Rate Limit, Please Wait 1 Minute...");
77+
tokio::time::sleep(Duration::from_secs(60)).await;
78+
Box::pin(self.send_avatar_id(avatar_id)).await?
79+
}
7580
_ => bail!("[{kind}] {status} | {text}"),
7681
};
7782

src/provider/paw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const URL: &str = "https://paw-api.amelia.fun/update";
1616
const AVATAR_URL: &str = "https://paw-api.amelia.fun/avatar";
1717

1818
pub struct Paw<'a> {
19+
#[allow(dead_code)]
1920
settings: &'a Settings,
2021
client: Client,
2122
}

src/provider/prelude.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
pub use super::avtrdb::AvtrDB;
33
#[cfg(feature = "cache")]
44
pub use super::cache::Cache;
5+
#[cfg(feature = "nsvr")]
6+
pub use super::nsvr::NSVR;
7+
#[cfg(feature = "paw")]
8+
pub use super::paw::Paw;
59
#[cfg(feature = "vrcdb")]
610
pub use super::vrcdb::VrcDB;
7-
#[cfg(feature = "vrcds")]
8-
pub use super::vrcds::VrcDS;
911
#[cfg(feature = "vrcwb")]
1012
pub use super::vrcwb::VrcWB;
11-
#[cfg(feature = "paw")]
12-
pub use super::paw::Paw;

0 commit comments

Comments
 (0)