Showing 2 of 8 total issues
Function movieTrailer
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function movieTrailer( movie, options, cb, legacy ) {
/* Fetch movie trailers */
// Massage inputs
Function getTrailer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTrailer( movieId, options ) {
const path = options && options.videoType === 'tv' ? '/3/tv/' : '/3/movie/'
/* Fetch single or multiple movie trailers via the TMDB API */