movie_parsers

package
v0.0.0-...-6717642 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MovieChannel

type MovieChannel struct {
	Items []MovieItems `xml:"item"`
}

func GetFeed

func GetFeed(url string) ([]MovieChannel, error)

func GetFeeds

func GetFeeds() ([]MovieChannel, error)

GetFeeds gets all feeds from the tu-film website

type MovieItems

type MovieItems struct {
	Title     string `xml:"title"`
	Link      string `xml:"link"`
	PubDate   string `xml:"pubDate"`
	Location  string `xml:"location"`
	Enclosure struct {
		Url    string `xml:"url,attr"`
		Length string `xml:"length,attr"`
		Type   string `xml:"type,attr"`
	} `xml:"enclosure"`
}

type OmdbResults

type OmdbResults struct {
	ReleaseYear string `json:"Year"`
	Runtime     string
	Genre       string
	Director    string
	Actors      string
	Plot        string
	ImdbRating  string `json:"imdbRating"`
}

func GetOmdbMovie

func GetOmdbMovie(id string) (*OmdbResults, error)

type TuFilmWebsiteInformation

type TuFilmWebsiteInformation struct {
	ImdbID               null.String
	TrailerUrl           null.String
	ImageUrl             string
	ShortenedDescription string
	ReleaseYear          null.String
	Director             null.String
	Actors               null.String
	Runtime              null.String
}

func GetTuFilmWebsiteInformation

func GetTuFilmWebsiteInformation(url string) (*TuFilmWebsiteInformation, error)

GetTuFilmWebsiteInformation scrapes the tu-film website for all usefully information url: url of the tu-film website, e.g. https://www.tu-film.de/programm/view/1204

Jump to

Keyboard shortcuts

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