Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4c9c85

Browse files
authored
scraper: fix CzechVR scrapers (#1672)
* scraper: fix CzechVR scrapers* fix script detection---------Co-authored-by: crwxaj <crwxaj>
1 parent219f19a commitf4c9c85

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎pkg/scrape/czechvr.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ func CzechVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan
7373
})
7474

7575
// Tags
76-
e.ForEach(`div.post div.tagyall div.tag`,func(idint,e*colly.HTMLElement) {
76+
e.ForEach(`div.post div#info div#Tagy.tagy div.tag`,func(idint,e*colly.HTMLElement) {
7777
sc.Tags=append(sc.Tags,strings.TrimSpace(e.Text))
7878
})
7979

8080
// Cast
81-
e.ForEach(`div.post div.featuring > a`,func(idint,e*colly.HTMLElement) {
81+
e.ForEach(`div.post div#info div.modelky a span`,func(idint,e*colly.HTMLElement) {
8282
sc.Cast=append(sc.Cast,strings.TrimSpace(e.Text))
8383
})
8484

8585
// Date
86-
e.ForEach(`div.post div.nazev div.datumDetail`,func(idint,e*colly.HTMLElement) {
86+
e.ForEach(`div.post div#info div.datum`,func(idint,e*colly.HTMLElement) {
8787
tmpDate,_:=goment.New(e.Text,"MMM DD, YYYY")
8888
sc.Released=tmpDate.Format("YYYY-MM-DD")
8989
})
9090

9191
// Duration
92-
e.ForEach(`div.post div.nazev div.casDetail span.desktop`,func(idint,e*colly.HTMLElement) {
92+
e.ForEach(`div.post div#info div.cas`,func(idint,e*colly.HTMLElement) {
9393
tmpDuration,err:=strconv.Atoi(strings.Split(e.Text,":")[0])
9494

9595
iferr==nil {
@@ -98,8 +98,10 @@ func CzechVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan
9898
})
9999

100100
ifconfig.Config.Funscripts.ScrapeFunscripts {
101-
e.ForEach(`div.interactive`,func(idint,e*colly.HTMLElement) {
102-
sc.HasScriptDownload=true
101+
e.ForEach(`div.post div#info div#VideoTagy.tagy div.tag`,func(idint,e*colly.HTMLElement) {
102+
ifstrings.TrimSpace(e.Text)=="Interactive" {
103+
sc.HasScriptDownload=true
104+
}
103105
})
104106
}
105107

@@ -113,7 +115,7 @@ func CzechVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan
113115
}
114116

115117
// Filenames
116-
e.ForEach(`div.post div.downloada.trailer`,func(idint,e*colly.HTMLElement) {
118+
e.ForEach(`div.post div#downloaddiv.dlnew a`,func(idint,e*colly.HTMLElement) {
117119
ifid==0 {
118120
tmp:=strings.Split(e.Attr("href"),"/")
119121
parts:=strings.Split(tmp[len(tmp)-1],"-")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp