schema

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Movie

type Movie struct {
	Thing
	Actors        []Thing  `json:"actor"`
	ContentRating string   `json:"contentRating"`
	Context       string   `json:"@context"`
	Creators      []Thing  `json:"creator"`
	DatePublished string   `json:"datePublished"`
	Directors     []Thing  `json:"director"`
	Genres        []string `json:"genre"`
	Keywords      string   `json:"keywords"`
}

func (*Movie) Convert

func (r *Movie) Convert(preferredLang, defaultLang *lcconv.LngCntry) *tags.Movie

Converts the imdb-imported json movie schema to imdb2mkvtags' internal data type. Text is HTML unescaped as a side effect.

type Thing

type Thing struct {
	AdditionalType            string `json:"additionalType"`
	AlternateName             string `json:"alternateName"`
	Description               string `json:"description"`
	DisambiguatingDescription string `json:"disambiguatingDescription"`
	Identifier                string `json:"identifier"`
	Image                     string `json:"image"`
	MainEntityOfPage          string `json:"mainEntityOfPage"`
	Name                      string `json:"name"`
	PotentialAction           string `json:"potentialAction"`
	SameAs                    string `json:"sameAs"`
	SubjectOf                 string `json:"subjectOf"`
	Type                      string `json:"@type"`
	Url                       string `json:"url"`
}

Jump to

Keyboard shortcuts

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