Skip to content

Commit

Permalink
Filter out NSFW images
Browse files Browse the repository at this point in the history
If people whant that, they can add them manually.
It should not be something that happens automatically.
  • Loading branch information
PhilipK committed Mar 27, 2022
1 parent a752440 commit 20fa076
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/steamgriddb/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{collections::HashMap, path::Path};
use futures::{stream, StreamExt};
use serde::{Deserialize, Serialize};
use std::error::Error;
use steamgriddb_api::query_parameters::GridDimentions; // 0.3.1
use steamgriddb_api::query_parameters::{GridDimentions, Nsfw}; // 0.3.1

use steam_shortcuts_util::shortcut::ShortcutOwned;
use steamgriddb_api::Client;
Expand Down Expand Up @@ -224,20 +224,24 @@ async fn get_images_for_ids(
let big_picture_parameters = GridQueryParameters {
dimentions: Some(&big_picture_dims),
types: anymation_type,
nsfw: Some(&Nsfw::False),
..Default::default()
};
use steamgriddb_api::query_parameters::HeroQueryParameters;
let hero_parameters = HeroQueryParameters {
types: anymation_type,
nsfw: Some(&Nsfw::False),
..Default::default()
};
let grid_parameters = GridQueryParameters {
types: anymation_type,
nsfw: Some(&Nsfw::False),
..Default::default()
};
use steamgriddb_api::query_parameters::LogoQueryParameters;
let logo_parameters = LogoQueryParameters {
types: anymation_type,
nsfw: Some(&Nsfw::False),
..Default::default()
};
let query_type = match image_type {
Expand Down

2 comments on commit 20fa076

@isopix
Copy link

@isopix isopix commented on 20fa076 Mar 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried I will be seen as somebody that requested censorship, so I will kindly suggest providing option for this NSFW filtering.

NSFW filtering doesn't make sense in theory, because in theory it depends on NSFW content in user's library (and he got 'hide' option on Steam for that)
But in practice[my small example] it reduced false atachement of out-of-store [mostly casual apps/old logical games] 2-3x, while reducing lesbian visual movies/hetnai pictures at least 10* (to one left).
So it's a win-win for general user(until somebody got such stuf in library, then there should option be provided to enable it.

But I'm not typical users, and there was no games from store, but mostly old scholl linux games (Enigma, Tux Racer, Pingus, GCompris) and causal apps(sound recording, some painting apps), mostly selected for kids. so it was strange to see them with some teasing lesbians ^^
But most people will ever fetch only games from Epic, GOG and Itch.io there, where titles are identical to Steam(so no false positives ;-)

@PhilipK
Copy link
Owner Author

@PhilipK PhilipK commented on 20fa076 Mar 28, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.