update your database detail in script line (9 to 12) and you good to go once the admin imported the movies by tmdb id in admin panel he can run the script to insert streaming link in movie streaming link. you don't have to very about duplicate link insert in data base with each time script run the script itself check for if there is already entry for link or not. the sctipt give you 6 streaming link option's and each link have multi-quality stream.
place the php script in root directory (public_html folder) of dooo panel