mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
updates
This commit is contained in:
parent
5a6d7006e0
commit
fb383652c8
22 changed files with 3161 additions and 3071 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use super::{select_text_empty, whitespace_regex, ElementExt, Parser};
|
||||
use super::{ElementExt, Parser, select_text_empty, whitespace_regex};
|
||||
use crate::data::{Membership, NameChange, Record, Team};
|
||||
use crate::parser::{
|
||||
select_text, steam_id_from_link, DATE_FORMAT, MEMBER_DATE_ALT_FORMAT, MEMBER_DATE_FORMAT,
|
||||
DATE_FORMAT, MEMBER_DATE_ALT_FORMAT, MEMBER_DATE_FORMAT, select_text, steam_id_from_link,
|
||||
};
|
||||
use crate::{ParseError, Result, ScrapeError};
|
||||
use scraper::{Html, Selector};
|
||||
|
|
@ -183,10 +183,10 @@ impl Parser for TeamParser {
|
|||
|
||||
let timezone = select_text(root, &self.selector_team_timezone).map(String::from);
|
||||
|
||||
if let Some(timezone) = timezone.as_deref() {
|
||||
if region.is_none() {
|
||||
region = Region::from_str(timezone).ok();
|
||||
}
|
||||
if let Some(timezone) = timezone.as_deref()
|
||||
&& region.is_none()
|
||||
{
|
||||
region = Region::from_str(timezone).ok();
|
||||
}
|
||||
|
||||
if region.is_none() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue