<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_downloaded_items(self, result, camera, path):
 """Parse downloaded videos."""

        for item in result:
            try:
                created_at = item['created_at']
                camera_name = item['camera_name']
                is_deleted = item['deleted']
                address = item['address']
            except KeyError:
                _LOGGER.info("Missing clip information, skipping...")
                continue

            if camera_name not in camera and 'all' not in camera:
                _LOGGER.debug("Skipping videos for %s.", camera_name)
                continue

            if is_deleted:
                _LOGGER.debug("%s: %s is marked as deleted.",
                              camera_name,
                              address)
                continue

            clip_address = "{}{}".format(self.urls.base_url, address)
            filename = "{}_{}.mp4".format(camera_name, created_at)
            filename = os.path.join(path, filename)

            if os.path.isfile(filename):
                _LOGGER.info("%s already exists, skipping...", filename)
                continue

            response = api.http_get(self, url=clip_address,
                                    stream=True, json=False)
            with open(filename, 'wb') as vidfile:
                copyfileobj(response.raw, vidfile)

            _LOGGER.info("Downloaded video to %s", filename)