Detect and recover malformed inline data URLs missing the data: scheme

未關閉
#420 0 則留言 2 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@Sriram-Nambiar 已經在處理了。

開始於 2026年12月3日。

  • #421 來自 @Sriram-Nambiar —— 未關閉

評估

這個 Issue 還沒有評估資料。

描述

Follow-up from openzim/warc2zim#472.

In https://farm.openzim.org/pipeline/a2e68a52-d534-4511-9ad5-26b1fa073e70/debug, pages contained inline images/links missing the data: scheme prefix (e.g. image/jpeg;base64,...). Because data: is missing, zimscraperlib treats them as normal relative HTTP URLs instead of inline data and rewrites them as broken ZIM/HTTP paths.

When a link or src looks like inline base64 data missing data: (even if already prefixed by an HTTP path), zimscraperlib should detect it and recover it as a valid inline data: URI instead of rewriting it as a ZIM path.

主要語言
Python
星號
33
分支
36
平均合併
1 天 10 小時
30 天內合併 PR
19

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

openzim/python-scraperlib 的其他 Issue

查看 openzim/python-scraperlib 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。