<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>teamikl</author_name>
  <author_url>https://blog.hatena.ne.jp/teamikl/</author_url>
  <blog_title>Hello world !</blog_title>
  <blog_url>https://teamikl.hatenadiary.org/</blog_url>
  <categories>
    <anon>BitTorrent</anon>
  </categories>
  <description>ファイルの &quot;piece length&quot;バイト分のSHA hash値と、メタ情報ファイル(.torrent)に含まれる metainfo[&quot;info&quot;][&quot;pieces&quot;] の 20 bytesを比較するとチェックできるらしい。BEncodingのソースは以前載せたので、.torrentのデコードにはそれを利用して。 require 'digest/sha1' # fh .. ファイル ハンドル # pieces .. メタ情報ファイルの meta[&quot;info&quot;][&quot;pieces&quot;] # piece_length .. メタ情報ファイル内の meta[&quot;info&quot;][&quot;piece length…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteamikl.hatenadiary.org%2Fentry%2F20040520%2Fp2&quot; title=&quot; 欠陥ピースをチェックする方法。 - Hello world !&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2004-05-20 00:00:01</published>
  <title> 欠陥ピースをチェックする方法。</title>
  <type>rich</type>
  <url>https://teamikl.hatenadiary.org/entry/20040520/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
