metatube-community / metatube-sdk-go

MetaTube SDK & API Server in Golang

Home Page:https://metatube-community.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Add Genres to Search For Filtering out Certain Categories

oceanpacificpeace opened this issue · comments

Description

Add Genres to Search For Filtering out Certain Categories (omni, collection)
I believe I see where the code is needed, for example below on the fanza.go file:
Additionally the model needs to be updated on model/movie.go

I'm just not sure what the value below should be

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

results = append(results, &model.MovieSearchResult{
	ID:          id,
	Number:      ParseNumber(id),
	Title:       e.ChildAttr(`.//p[@class="tmb"]/a/span[1]/img`, "alt"),
	Provider:    fz.Name(),
	Homepage:    homepage,
	ThumbURL:    e.Request.AbsoluteURL(thumb),
	CoverURL:    e.Request.AbsoluteURL(PreviewSrc(thumb)),
	Score:       parser.ParseScore(rate /* float or a dash (-) */),
	ReleaseDate: parser.ParseDate(releaseDate /* 発売日:2022/07/21 */),
	Genres: [CODE HERE]
})

I see it's not possible on this this url: https://www.dmm.co.jp/search/=/searchstr=%s/limit=120/sort=date/

You're right, it's not possible.