Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular.forEach( response.data.Search, function( value, key ) {
  2.     change this http//ia.media-imdb.com/images/M/XXXXX) to https//images-na.ssl-images-amazon.com/images/M/XXXXXXXX"
  3.     if ( value.Poster === "N/A" ) {
  4.         this[key] = value;
  5.         this[key].Poster = '/inspinia/images/no-preview-available.png';
  6.     }
  7.     else {
  8.         this[key] = value;
  9.         this[key].Poster.replace( 'http' , 'https' );
  10.         this[key].Poster.replace('ia.media-imdb.com' ,'images-na.ssl-images-amazon.com');
  11.         console.log( this[key].Poster );
  12.     }
  13. }, AllCover );
  14. push all to AllCover,.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement