library extended for more encoding styles

if season and episode information are not enclosed between [] or {}

also bug with episode no corrected in this commit