tvmaze.js
function idSearch( id, type, callback ) {
    if ( ! endpoints['id'].hasOwnProperty(type) ) {
        return callback(new Error('No valid type'));
    }

    var url = apiBaseUrl+endpoints['id'][type] + id;

    fetch(url, function(result) {
        callback(result);
    });
}
function idSearch( id, type, callback ) {
    if ( ! endpoints['id'].hasOwnProperty(type) ) {
        return callback(new Error('No valid type'));
    }

    var url = apiBaseUrl+endpoints['id'][type] + id;

    fetch(url, function(result) {
        callback(result);
    });
}
function idSearch ( id , type , callback ) { if ( ! endpoints [ 'id' ] . hasOwnProperty ( type ) ) { return callback ( new Error ( 'No valid type' ) ) ; } var url = apiBaseUrl + endpoints [ 'id' ] [ type ] + id ; fetch ( url , function ( result ) { callback ( result ) ; } ) ; }
Search by imdb, tvrage or tvdb id

@param id
@param type
@param callback
Search by imdb tvrage or tvdb id