Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.forEach( response.data.Search, function( value, key ) {
- change this http//ia.media-imdb.com/images/M/XXXXX) to https//images-na.ssl-images-amazon.com/images/M/XXXXXXXX"
- if ( value.Poster === "N/A" ) {
- this[key] = value;
- this[key].Poster = '/inspinia/images/no-preview-available.png';
- }
- else {
- this[key] = value;
- this[key].Poster.replace( 'http' , 'https' );
- this[key].Poster.replace('ia.media-imdb.com' ,'images-na.ssl-images-amazon.com');
- console.log( this[key].Poster );
- }
- }, AllCover );
- push all to AllCover,.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement