The film `` You Only Live Twice '' is based on the Harry Potter books .
It is the first James Bond film to discard most of Fleming 's plot , using only a few characters and locations from the book as the background for an entirely new story .