Compare commits
2 Commits
f56ff3e06f
...
166a8c9996
Author | SHA1 | Date |
---|---|---|
Bauke | 166a8c9996 | |
Bauke | 5e82d2ef38 |
|
@ -538,7 +538,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "steam-rss"
|
name = "steam-rss"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
|
|
|
@ -3,7 +3,7 @@ name = "steam-rss"
|
||||||
description = "Get RSS feeds for Steam games."
|
description = "Get RSS feeds for Steam games."
|
||||||
repository = "https://git.bauke.xyz/Bauke/steam-rss"
|
repository = "https://git.bauke.xyz/Bauke/steam-rss"
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
authors = ["Bauke <me@bauke.xyz>"]
|
authors = ["Bauke <me@bauke.xyz>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,12 @@ USAGE:
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-a, --appid <APPID> A game's AppID, can be used multiple times
|
-a, --appid <APPID> A game's AppID, can be used multiple times
|
||||||
-h, --help Print help information
|
-h, --help Print help information
|
||||||
|
--opml Output the feeds as OPML
|
||||||
-t, --timeout <TIMEOUT> The time in milliseconds to sleep between HTTP requests [default:
|
-t, --timeout <TIMEOUT> The time in milliseconds to sleep between HTTP requests [default:
|
||||||
250]
|
250]
|
||||||
|
--url <URL> A game's store URL, can be used multiple times
|
||||||
|
--user <USER> A person's steamcommunity.com ID or full URL, can be used multiple
|
||||||
|
times
|
||||||
-v, --verify Verify potential feeds by downloading them and checking if they
|
-v, --verify Verify potential feeds by downloading them and checking if they
|
||||||
return XML
|
return XML
|
||||||
-V, --version Print version information
|
-V, --version Print version information
|
||||||
|
|
|
@ -169,7 +169,7 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
if args.verify {
|
if args.verify {
|
||||||
let verify_feed = |url: &str| -> Result<_> {
|
let verify_feed = |url: &str| -> Result<_> {
|
||||||
let response = ureq_agent.get(&url).call()?;
|
let response = ureq_agent.get(url).call()?;
|
||||||
sleep(timeout);
|
sleep(timeout);
|
||||||
Ok((
|
Ok((
|
||||||
response.content_type() == "text/xml",
|
response.content_type() == "text/xml",
|
||||||
|
|
Loading…
Reference in New Issue