'Finds `SubtitleListFile` corresponding to this entry, if it exists.'

@with_session
def _find_entry(self, entry, match_file_to_dir=False, session=None):

    path = self._extract_path(entry)
    res = self._db_list(session).files.filter((SubtitleListFile.location == path)).first()
    if ((not res) and match_file_to_dir):
        path = os.path.dirname(path)
        res = self._db_list(session).files.filter((SubtitleListFile.location == path)).first()
    return res
