Skip to content

Commit

Permalink
fix: title
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsen committed Oct 5, 2024
1 parent ee1dcf8 commit c00b6a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion searcher/plugin/javbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *javbus) OnDecorateRequest(ctx *PluginContext, req *http.Request) error
func (p *javbus) OnDecodeHTTPData(ctx *PluginContext, data []byte) (*model.AvMeta, bool, error) {
dec := decoder.XPathHtmlDecoder{
NumberExpr: `//div[@class="row movie"]/div[@class="col-md-3 info"]/p[span[contains(text(),'識別碼:')]]/span[2]/text()`,
TitleExpr: `/html/head/title`,
TitleExpr: `//div[@class="container"]/h3`,
ActorListExpr: `//div[@class="star-name"]/a/text()`,
ReleaseDateExpr: `//div[@class="row movie"]/div[@class="col-md-3 info"]/p[span[contains(text(),'發行日期:')]]/text()[1]`,
DurationExpr: `//div[@class="row movie"]/div[@class="col-md-3 info"]/p[span[contains(text(),'長度:')]]/text()[1]`,
Expand All @@ -50,6 +50,7 @@ func (p *javbus) OnDecodeHTTPData(ctx *PluginContext, data []byte) (*model.AvMet
GenreListExpr: `//div[@class="row movie"]/div[@class="col-md-3 info"]/p/span[@class="genre"]/label[input[@name="gr_sel"]]/a/text()`,
CoverExpr: `//div[@class="row movie"]/div[@class="col-md-9 screencap"]/a[@class="bigImage"]/@href`,
PosterExpr: "",
PlotExpr: `//meta[@name="description"]/@content`,
SampleImageListExpr: `//div[@id="sample-waterfall"]/a[@class="sample-box"]/@href`,
}
rs, err := dec.DecodeHTML(data,
Expand Down

0 comments on commit c00b6a3

Please sign in to comment.