fixed typeof string error

fixed typeof string error and added the check for episodes after it
finishs checking for new eps.