mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
freeones fixes (#615)
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
const freeonesScraperID = "builtin_freeones"
|
const freeonesScraperID = "builtin_freeones"
|
||||||
|
|
||||||
// 537: stolen from: https://github.com/stashapp/CommunityScrapers/blob/master/scrapers/NewFreeones.yml
|
// 537: stolen from: https://github.com/stashapp/CommunityScrapers/blob/master/scrapers/FreeonesCommunity.yml
|
||||||
const freeonesScraperConfig = `
|
const freeonesScraperConfig = `
|
||||||
name: Freeones
|
name: Freeones
|
||||||
performerByName:
|
performerByName:
|
||||||
@@ -41,8 +41,8 @@ xPathScrapers:
|
|||||||
replace:
|
replace:
|
||||||
- regex: ^
|
- regex: ^
|
||||||
with: https://www.freeones.xxx
|
with: https://www.freeones.xxx
|
||||||
Twitter: //div[p[text()='Follow On']]//div//a[@class='d-flex align-items-center justify-content-center mr-2 social-icons color-twitter']/@href
|
Twitter: //div[p[text()='Follow On']]//div//a[@class='d-flex align-items-center justify-content-center m-2 social-icons color-twitter']/@href
|
||||||
Instagram: //div[p[text()='Follow On']]//div//a[@class='d-flex align-items-center justify-content-center mr-2 social-icons color-telegram']/@href
|
Instagram: //div[p[text()='Follow On']]//div//a[@class='d-flex align-items-center justify-content-center m-2 social-icons color-telegram']/@href
|
||||||
Birthdate:
|
Birthdate:
|
||||||
selector: //div[p[text()='Personal Information']]//div//p/a/span[contains(text(),'Born On')]
|
selector: //div[p[text()='Personal Information']]//div//p/a/span[contains(text(),'Born On')]
|
||||||
replace:
|
replace:
|
||||||
@@ -63,14 +63,15 @@ xPathScrapers:
|
|||||||
- regex: Latin
|
- regex: Latin
|
||||||
with: "hispanic"
|
with: "hispanic"
|
||||||
Country: //div[p[text()='Personal Information']]//div//p//a[@data-test="link-country"]
|
Country: //div[p[text()='Personal Information']]//div//p//a[@data-test="link-country"]
|
||||||
EyeColor: //div[p[text()='Eye Color']]//div//p//a//span
|
EyeColor: //span[@data-test="link_span_eye_color"]
|
||||||
Height:
|
Height:
|
||||||
selector: //div[p[text()='Height']]//div//p//a//span
|
selector: //span[@data-test="link_span_height"]
|
||||||
replace:
|
replace:
|
||||||
- regex: \D+[\s\S]+
|
- regex: \D+[\s\S]+
|
||||||
with: ""
|
with: ""
|
||||||
Measurements:
|
Measurements:
|
||||||
selector: //div[p[text()='Measurements']]//div[@class='p-3']//p
|
selector: //span[@data-test="p-measurements"]//a/span
|
||||||
|
concat: " - "
|
||||||
replace:
|
replace:
|
||||||
- regex: Unknown
|
- regex: Unknown
|
||||||
with:
|
with:
|
||||||
@@ -90,10 +91,16 @@ xPathScrapers:
|
|||||||
- regex: -\w+-\w+-\w+-\w+-\w+$
|
- regex: -\w+-\w+-\w+-\w+-\w+$
|
||||||
with: ""
|
with: ""
|
||||||
Aliases: //div[p[text()='Aliases']]//div//p[@class='mb-0 text-center']
|
Aliases: //div[p[text()='Aliases']]//div//p[@class='mb-0 text-center']
|
||||||
Tattoos: //div[p[text()='Tattoos']]//div//p[@class='mb-0 text-center']
|
Tattoos: //span[@data-test="p_has_tattoos"]|//span[@cdata-test="p_has_tattoos"]
|
||||||
Piercings: //div[p[text()='Piercings']]//div//p[@class='mb-0 text-center']
|
Piercings: //span[@data-test="p_has_piercings"]
|
||||||
Image:
|
Image:
|
||||||
selector: //div[@class='profile-image-large']//a/img/@src
|
selector: //div[@class='profile-image-container']//a/img/@src
|
||||||
|
Gender:
|
||||||
|
selector: //meta[@name="language"]/@name
|
||||||
|
replace:
|
||||||
|
- regex: language
|
||||||
|
with: "Female"
|
||||||
|
# Last updated June 15, 2020
|
||||||
`
|
`
|
||||||
|
|
||||||
func GetFreeonesScraper() scraperConfig {
|
func GetFreeonesScraper() scraperConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user