tvdb.go

tvdb.go is a client API wrapper for thetvdb.com

Installation

Just run go get github.com/cpjolicoeur/tvdb

Examples

package main

import "github.com/cpjolicoeur/tvdb"

func main() {
    // matches is an array of tvdb.Series entries that match
    // the series you were searching for
    matches, err := tvdb.GetSeries("A-Team")

    // To populate the episode and other information for a specific
    // series, you run the `GetEpisodes()` function
    err = matches[0].GetEpisodes()

    // You can also create a Series entry directly if you already
    // know it's TVDB id through other means
    series := &tvdb.Series{Id: '123456'}
    err = series.GetEpisodes()
}

Built With

Share this project:
×

Updates