def fullSizeCoverURL(obj):
 if isinstance(obj, Movie):
  coverUrl = obj.get('cover url')
 elif isinstance(obj, (Person, Character)):
  coverUrl = obj.get('headshot')
 else:
  coverUrl = obj
 if (not coverUrl):
  return None
 return _Container._re_fullsizeURL.sub('', coverUrl)

def fullSizeCoverURL ( obj ) : if isinstance ( obj , Movie ) : coverUrl = obj . get ( 'cover url' ) elif isinstance ( obj , ( Person , Character ) ) : coverUrl = obj . get ( 'headshot' ) else : coverUrl = obj if ( not coverUrl ) : return None return _Container . _re_fullsizeURL . sub ( '' , coverUrl )
given an url string or a movie .