ETVDB  0.6.0
ETVDB is a tool and a library to get data from The TV Database (TVDB)
Data Structures | Macros | Typedefs | Functions | Variables
etvdb.h File Reference

This is the public etvdb API. More...

#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <Eina.h>

Go to the source code of this file.

Data Structures

struct  _etvdb_series
 
struct  _etvdb_episode
 

Typedefs

typedef struct _etvdb_series Series
 
typedef struct _etvdb_episode Episode
 

Functions

EAPI Eina_Bool etvdb_init (char api_key[17])
 
EAPI Eina_Bool etvdb_shutdown (void)
 Shutdown etvdb. More...
 
EAPI Eina_Hash * etvdb_languages_get (const char *lang_file_path)
 Function to retrieve supported languages. More...
 
EAPI Eina_Bool etvdb_language_set (Eina_Hash *hash, char *lang)
 Change the global language setting. More...
 
EAPI time_t etvdb_server_time_get (void)
 Function to retrieve time from TVDB's servers. More...
 
EAPI Seriesetvdb_series_by_id_get (uint32_t id)
 Get Series data by TVDB Series ID. More...
 
EAPI int etvdb_series_episodes_count (Series *s, int season)
 Count episodes of one season in a Series structure. More...
 
EAPI Eina_List * etvdb_series_find (const char *name)
 Find Series by Name. More...
 
EAPI void etvdb_series_free (Series *s)
 Free a Series structure. More...
 
EAPI Seriesetvdb_series_from_list_get (Eina_List *list, int number)
 Get a Series from a list and initialize it fully. More...
 
EAPI Eina_Bool etvdb_series_populate (Series *s)
 Populate a Series structure with Episode data. More...
 
EAPI Eina_List * etvdb_episodes_get (Series *s)
 Get all Episodes of a Series. More...
 
EAPI Episodeetvdb_episode_airs_next_get (Series *s, char *timestr)
 Get the Episode that airs next. More...
 
EAPI Episodeetvdb_episode_by_date_get (Series *s, const char *date)
 Get episode data for a specific date. More...
 
EAPI Episodeetvdb_episode_by_id_get (uint32_t id, Series **s)
 Get episode data for one specific Episode. More...
 
EAPI Episodeetvdb_episode_by_number_get (Series *s, int season, int episode)
 Get episode data for one specific Episode. More...
 
EAPI void etvdb_episode_free (Episode *e)
 Free a Episode structure. More...
 
EAPI Episodeetvdb_episode_from_series_get (Series *s, int season, int episode)
 Get Episode data from Series data. More...
 
EAPI Episodeetvdb_episode_latest_aired_get (Series *s, char *timestr)
 Get the Episode that aired most recently. More...
 

Variables

char etvdb_api_key [17]
 This array holds the TVDB api key for ETVDB. You should never manually overwrite it. More...
 
char etvdb_language [3]
 This array holds the language id. It is initialized by default and can be overview via etvdb_language_set(). You should never manually overwrite it. More...
 

Detailed Description

This is the public etvdb API.

Typedef Documentation

typedef struct _etvdb_episode Episode

this structure represents a TVDB Episode

it is roughly comparable to TVDB's Base Series Record.

typedef struct _etvdb_series Series

this structure represents a TVDB Series

it is roughly comparable to TVDB's Base Series Record.

Variable Documentation

char etvdb_api_key[17]

This array holds the TVDB api key for ETVDB. You should never manually overwrite it.

See also
etvdb_init()
char etvdb_language[3]

This array holds the language id. It is initialized by default and can be overview via etvdb_language_set(). You should never manually overwrite it.

See also
etvdb_language_set()
etvdb_init()