{"record":{"id":"0712736684ce3f7e","repo":"yt-dlp/yt-dlp","slug":"webpage-type-is-only-video-extraction-is-sup","errorCode":null,"errorMessage":"Webpage type is \"{}\": only video extraction is supported for Slideshare","messagePattern":"Webpage type is \"(.+?)\": only video extraction is supported for Slideshare","errorType":"exception","errorClass":"ExtractorError","httpStatus":null,"severity":"error","filePath":"yt_dlp/extractor/slideshare.py","lineNumber":33,"sourceCode":"        'url': 'http://www.slideshare.net/Dataversity/keynote-presentation-managing-scale-and-complexity',\n        'info_dict': {\n            'id': '25665706',\n            'ext': 'mp4',\n            'title': 'Managing Scale and Complexity',\n            'description': 'This was a keynote presentation at the NoSQL Now! 2013 Conference & Expo (http://www.nosqlnow.com). This presentation was given by Adrian Cockcroft from Netflix.',\n        },\n    }\n\n    def _real_extract(self, url):\n        mobj = self._match_valid_url(url)\n        page_title = mobj.group('title')\n        webpage = self._download_webpage(url, page_title)\n        slideshare_obj = self._search_regex(\n            r'\\$\\.extend\\(.*?slideshare_object,\\s*(\\{.*?\\})\\);',\n            webpage, 'slideshare object')\n        info = json.loads(slideshare_obj)\n        if info['slideshow']['type'] != 'video':\n            raise ExtractorError('Webpage type is \"{}\": only video extraction is supported for Slideshare'.format(info['slideshow']['type']), expected=True)\n\n        doc = info['doc']\n        bucket = info['jsplayer']['video_bucket']\n        ext = info['jsplayer']['video_extension']\n        video_url = urllib.parse.urljoin(bucket, doc + '-SD.' + ext)\n        description = get_element_by_id('slideshow-description-paragraph', webpage) or self._html_search_regex(\n            r'(?s)<p[^>]+itemprop=\"description\"[^>]*>(.+?)</p>', webpage,\n            'description', fatal=False)\n\n        return {\n            '_type': 'video',\n            'id': info['slideshow']['id'],\n            'title': info['slideshow']['title'],\n            'ext': ext,\n            'url': video_url,\n            'thumbnail': info['slideshow']['pin_image_url'],\n            'description': description.strip() if description else None,\n        }","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/yt-dlp/yt-dlp/blob/81ecd58b1394793e6da9998cc19fdb45657f1685/yt_dlp/extractor/slideshare.py#L15-L51","documentation":"SlideshareIE parses the slideshare_object JSON embedded in the page and supports only slideshows whose slideshow.type is 'video' (SlideShare recordings rendered as video). Any other type — most commonly 'presentation' — raises this expected error stating that only video extraction is supported for Slideshare.","triggerScenarios":"The URL points at an ordinary slide deck/document whose slideshare_object.slideshow.type is not 'video' (e.g. 'presentation').","commonSituations":"Users expecting yt-dlp to download slide PDFs; talks whose slides were uploaded separately from the video recording.","solutions":["Confirm on slideshare.net that the item is a video slideshow, not a deck","For presentations, use SlideShare's own (login) download or other document tooling","For recorded talks, locate the actual video source elsewhere"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"import json, re, urllib.request\n\ndef is_video_slideshow(url: str) -> bool:\n    page = urllib.request.urlopen(url).read().decode('utf-8', 'replace')\n    m = re.search(r'\\$\\.extend\\(.*?slideshare_object,\\s*(\\{.*?\\})\\);', page)\n    return bool(m) and json.loads(m.group(1))['slideshow']['type'] == 'video'\n\nif not is_video_slideshow(url):\n    raise ValueError('not a slideshare video; slide decks are not extractable')","typeGuard":"def is_slideshow_video(info) -> bool:\n    return (\n        isinstance(info, dict)\n        and isinstance(info.get('slideshow'), dict)\n        and info['slideshow'].get('type') == 'video'\n    )","tryCatchPattern":"from yt_dlp.utils import ExtractorError\n\ntry:\n    info = ydl.extract_info(url, download=False)\nexcept ExtractorError as e:\n    if 'only video extraction is supported' in str(e):\n        log.info('%s is a slide deck, not a video; skipping', url)\n    else:\n        raise","preventionTips":["Filter slideshare URLs by slideshow type before queuing downloads","Tag slide-deck links in your source data to avoid reprocessing","Remember yt-dlp extracts videos, not documents"],"tags":["content-type","unsupported","slideshare","presentation"],"backgroundTag":"unsupported-content-type","analyzedSha":"81ecd58b1394793e6da9998cc19fdb45657f1685","analyzedAt":"2026-08-22T12:21:25.439Z","schemaVersion":2},"datasetVersion":"2026-08-22T14:17:55.899Z"}