'Returns a full show dir/metadata/episode.xml path for MediaBrowser
episode metadata files
ep_obj: a TVEpisode object to get the path for'

def get_episode_file_path(self, ep_obj):

    if os.path.isfile(ep_obj.location):
        xml_file_name = replaceExtension(os.path.basename(ep_obj.location), self._ep_nfo_extension)
        metadata_dir_name = os.path.join(os.path.dirname(ep_obj.location), u'metadata')
        xml_file_path = os.path.join(metadata_dir_name, xml_file_name)
    else:
        sickrage.srCore.srLogger.debug((u"Episode    location    doesn't    exist:    " + str(ep_obj.location)))
        return u''
    return xml_file_path
