{"record":{"id":"6d61051e44a12314","repo":"DIYgod/RSSHub","slug":"unknown-video-type-datatype","errorCode":null,"errorMessage":"Unknown video type: ${dataType}","messagePattern":"Unknown video type: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/routes/pikabu/utils.ts","lineNumber":35,"sourceCode":"\nconst fixVideo = (element) => {\n    const preview = element\n        .find('.player__preview')\n        .attr('style')\n        .match(/url\\((.+)\\);/)[1];\n    const dataType = element.attr('data-type');\n    let videoHtml: string;\n\n    if (dataType === 'video') {\n        const videoId = element.attr('data-source').match(/\\/embed\\/(.+)$/)[1];\n        videoHtml = renderVideo({ videoId });\n    } else if (dataType === 'video-file') {\n        const width = element.find('.player__svg-stretch').attr('width');\n        const mp4 = `${element.attr('data-source')}.mp4`;\n        const webm = element.attr('data-webm');\n        videoHtml = renderVideo({ preview, width, mp4, webm });\n    } else {\n        throw new Error(`Unknown video type: ${dataType}`);\n    }\n    element.replaceWith(videoHtml);\n};\n\nexport { baseUrl, fixImage, fixVideo };\n","sourceCodeStart":17,"sourceCodeEnd":41,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/pikabu/utils.ts#L17-L41","documentation":"Error \"Unknown video type: ${dataType}\" thrown in DIYgod/RSSHub.","triggerScenarios":"A Pikabu item contains a video data type that is not recognized by the parser.","commonSituations":"See trigger scenarios.","solutions":["The source returned a video data type this route does not handle; open an issue with the item URL."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bed535e0879dc71c5aff6f1e7bd1ac21ede40115","analyzedAt":"2026-08-12T19:29:35.364Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}