def METHOD_NAME(self, subtitle):
    if isinstance(subtitle, SubtitriIdSubtitle):
        # download the subtitle
        r = self.session.get(subtitle.download_link, timeout=10)
        r.raise_for_status()
        # open the archive
        archive_stream = io.BytesIO(r.content)
        if is_rarfile(archive_stream):
            archive = RarFile(archive_stream)
        elif is_zipfile(archive_stream):
            archive = ZipFile(archive_stream)
        else:
            subtitle.content = r.content
            if subtitle.is_valid():
                return
            subtitle.content = None
            raise ProviderError('Unidentified archive type')
        subtitle.content = self.get_subtitle_from_archive(subtitle, archive)