mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
map history api
This commit is contained in:
parent
62b8ff9b5c
commit
6eec064496
8 changed files with 30 additions and 10 deletions
|
|
@ -177,7 +177,7 @@ impl UgcClient {
|
|||
|
||||
pub async fn map_history(&self, format: GameMode) -> Result<MapHistory> {
|
||||
let link = format!(
|
||||
"https://www.ugcleague.com/rostertransactions_tf2{}_all.cfm",
|
||||
"https://www.ugcleague.com/maplist_tf2{}.cfm",
|
||||
format.letter()
|
||||
);
|
||||
let body = self.client.get(link).send().await?.text().await?;
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ impl Parser for MapHistoryParser {
|
|||
.first_text()
|
||||
.unwrap_or_default()
|
||||
.trim_start_matches("Season ");
|
||||
dbg!(season);
|
||||
let season = season.parse().map_err(|_| ParseError::InvalidText {
|
||||
role: "previous season number",
|
||||
text: season.to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue