similar

package
v0.0.0-...-18451ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BBCodes = []string{
	"[list]",
	"[/list]",
	"[*]",
	"[hr]",
	"[u]",
	"[/u]",
	"[b]",
	"[/b]",
}
View Source
var DescriptionLanguages = []string{
	"Spanish:[spoiler]",
	"Russian:[spoiler]",
	"French:[spoiler]",
	"Spanish[spoiler]",
	"Russian[spoiler]",
	"French[spoiler]",
	"Chinese[spoiler]",
	"Spanish [spoiler]",
	"Russian [spoiler]",
	"French [spoiler]",
	"Chinese [spoiler]",
	"French\n[spoiler]",
	"Russian\n[spoiler]",
	"Spanish\n[spoiler]",
	"Chinese\n[spoiler]",
	"French:",
	"Russian:",
	"Spanish:",
	"Chinese:",
	"\n\nFrench",
	"\n\nRussian",
	"\n\nSpanish",
	"\n\nChinese",
	"\n\nfrench",
	"\n\nrussian",
	"\n\nspanish",
	"\n\nchinese",
	"Russian / Русский",
	"[u]Russian",
	"[b][u]Russian",
	"[RUS]",
	"Russian / Русский",
	"Russian/Русский:",
	"Russia/Русское",
	"[hr]Russian/русский:",
	"Русский",
	"RUS:",
	"[b][u]German / Deutsch",
	"German/Deutsch:",
	"Español / Spanish",
	"Spanish / Español",
	"Spanish / Espa & ntilde; ol",
	"Spanish / Español",
	"[b][u]Spanish",
	"[Español]:",
	"[b] Spanish: [/ b]",
	"정보",
	"Spanish/Español",
	"Español / Spanish",
	"Italian / Italiano",
	"Italian/Italiano",
	"\r\n\r\nItalian\r\n",
	"Pasta-Pizza-Mandolino/Italiano",
	"Persian /فارسی",
	"Farsi/Persian/",
	"Polish / polski",
	"Polish / Polski",
	"Polish Summary / Polski Opis",
	"Polski",
	"Portuguese (BR) / Português",
	"Portuguese / Português",
	"Português / Portuguese",
	"Portuguese / Portugu",
	"Portuguese / Português",
	"Português",
	"Portuguese (BR) / Portugu & ecirc;",
	"Portuguese (BR) / Portuguê",
	"[PTBR]",
	"Résume Français",
	"Résumé Français",
	"[b][u]French",
	"French / Français",
	"Français",
	"[hr]Fr:",
	"French - Français:",
	"Turkish / Türkçe",
	"Turkish/Türkçe",
	"Türkçe",
	"[b][u]Chinese",
	"Arabic / العربية",
	"العربية",
	"[hr]TH",
	"[b][u]Vietnamese",
	"[b]Links:",
	"[b]Link[/b]",
	"Links:",
	"[b]External Links",
	"[hr][b][u]Descriptions in Other Languages:[/u][/b]",
}
View Source
var EnglishDescriptionTags = []string{
	"[b][u]English:",
	"[b][u]English",
	"[English]:",
	"[B][ENG][/B]",
	"English:",
	"Official English",
	"official english",
}
View Source
var OneWayTags = []mangadex.Tag{
	{
		Id:    "b11fda93-8f1d-4bef-b2ed-8803d3733170",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "4-Koma"},
			Version: 1,
		},
	},
	{
		Id:    "b13b2a48-c720-44a9-9c77-39c9979373fb",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Doujinshi"},
			Version: 1,
		},
	},
	{
		Id:    "b29d6a3d-1569-4e7a-8caf-7557bc92cd5d",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Gore"},
			Version: 1,
		},
	},
	{
		Id:    "97893a4c-12af-4dac-b6be-0dffb353568e",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Sexual Violence"},
			Version: 1,
		},
	},
	{
		Id:    "5920b825-4181-4a17-beeb-9918b0ff7a30",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Boys' Love"},
			Version: 1,
		},
	},
	{
		Id:    "a3c67850-4684-404e-9b7f-c69850ee5da6",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Girls' Love"},
			Version: 1,
		},
	},
	{
		Id:    "acc803a4-c95a-4c22-86fc-eb6b582d82a2",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Wuxia"},
			Version: 1,
		},
	},
	{
		Id:    "2d1f5d56-a1e5-4d0d-a961-2193588b08ec",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Loli"},
			Version: 1,
		},
	},
	{
		Id:    "ddefd648-5140-4e5f-ba18-4eca4071d19b",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Shota"},
			Version: 1,
		},
	},
	{
		Id:    "5bd0e105-4481-44ca-b6e7-7544da56b1a3",
		Type_: "tag",
		Attributes: &mangadex.TagAttributes{
			Name:    &map[string]string{"en": "Incest"},
			Version: 1,
		},
	},
}
View Source
var StopWords = []string{}/* 318 elements not displayed */

Functions

func CleanDescription

func CleanDescription(strRaw string) string

func CleanTitle

func CleanTitle(strRaw string) string

func NotValidMatch

func NotValidMatch(manga mangadex.Manga, mangaOther mangadex.Manga) bool

Types

type SimilarManga

type SimilarManga struct {
	Id             string            `json:"id,omitempty"`
	Title          map[string]string `json:"title,omitempty"`
	ContentRating  string            `json:"contentRating,omitempty"`
	SimilarMatches []SimilarMatch    `json:"matches,omitempty"`
	UpdatedAt      string            `json:"updatedAt,omitempty"`
}

type SimilarMatch

type SimilarMatch struct {
	Id            string            `json:"id,omitempty"`
	Title         map[string]string `json:"title,omitempty"`
	ContentRating string            `json:"contentRating,omitempty"`
	Score         float32           `json:"score,omitempty"`
	Languages     []string          `json:"languages,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL