tvrage

package module
v0.0.0-...-a57d823 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2014 License: LGPL-3.0 Imports: 5 Imported by: 1

README

go-tvrage

Golang TVRage access library

Documentation

Overview

Functions for getting TV metadata from TVRage See this page for detail: http://services.tvrage.com/info.php?page=main

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TVRage

type TVRage struct {
	// contains filtered or unexported fields
}

func Init

func Init(tv_rage_api_key, tv_db_api_key string) *TVRage

Init() must be called first to initialize the library with the two API keys used in it

func (*TVRage) TVData

func (tv_rage *TVRage) TVData(MediaName string) (string, error)

Main call to get metadata for TV shows

func (*TVRage) ToJSON

func (tv_rage *TVRage) ToJSON(data string) (string, error)

convert to JSON after filtering out unwanted tv metadata

func (*TVRage) UsableTVName

func (tv_rage *TVRage) UsableTVName(MediaName string) (string, error)

CURRENTLY UNUSED This call is for string correction tvdb is really good at detecting tv/movie titles from non-standard filenames. So we make a call to this function (even for movies) to get a title name in standard format that can then be used to query whichever online database we want without worrying about weird filenames. This however creates a problem if tvdb database doesnot have that movie/tvshow or detects it incorrectly. Tvdb always returns some results even if they are false. So it is hard to debug when tvdb errs. Sometimes when tvdb returns wrong titlename, subsequent api returns data for the wrong titlename

Jump to

Keyboard shortcuts

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