Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fanbox] url_embed not detected #1087

Closed
ghost opened this issue Feb 19, 2022 · 1 comment
Closed

[Fanbox] url_embed not detected #1087

ghost opened this issue Feb 19, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 19, 2022

url_embed blocks within the bodies of Fanbox posts are not currently detected.

Example post: https://yellowbea.fanbox.cc/posts/3143003 (warning, NSFW)

Example data: https://api.fanbox.cc/post.info?postId=3143003
        
{
  "id": "3143003",
  "title": "Request : Jillllll",
  "coverImageUrl": "https://pixiv.pximg.net/c/1200x630_90_a2_g5/fanbox/public/images/post/3143003/cover/pW7K0YQtAREnHt8sWmnyBu8d.jpeg",
  "feeRequired": 0,
  "publishedDatetime": "2021-12-17T19:20:39+09:00",
  "updatedDatetime": "2021-12-17T19:20:39+09:00",
  "type": "article",
  "body": {
    "blocks": [
      {
        "type": "p",
        "text": ""
      },
      {
        "type": "url_embed",
        "urlEmbedId": "iQFvdxCmxDJOvvRHcrOTEGn0"
      },
      {
        "type": "p",
        "text": "Everybody in this is over 2000 years old."
      },
      {
        "type": "p",
        "text": "Please tell me if link is dead."
      }
    ],
    "imageMap": {},
    "fileMap": {},
    "embedMap": {},
    "urlEmbedMap": {
      "iQFvdxCmxDJOvvRHcrOTEGn0": {
        "id": "iQFvdxCmxDJOvvRHcrOTEGn0",
        "type": "html.card",
        "html": "<div class="iframely-card iframely-small iframely-embed"><div class="iframely-responsive" style="height: 140px; padding-bottom: 0;"><iframe src="https://cdn.iframe.ly/JHU5cCv?language=ja-JP&app=1" allowfullscreen></iframe></div></div>"
      }
    }
  },
  "tags": [],
  "excerpt": "Everybody in this is over 2000 years old.\nPlease tell me if link is dead.",
  "isLiked": false,
  "likeCount": 13,
  "commentCount": 0,
  "restrictedFor": null,
  "isRestricted": false,
  "user": {
    "userId": "1386751",
    "name": "YellowBea",
    "iconUrl": "https://pixiv.pximg.net/c/160x160_90_a2_g5/fanbox/public/images/user/1386751/icon/Ihpja1OUHjFtjlqA29wIB487.jpeg"
  },
  "creatorId": "yellowbea",
  "hasAdultContent": true,
  "commentList": {
    "items": [],
    "nextUrl": null
  },
  "nextPost": {
    "id": "3145546",
    "title": "Request : Ellie Ellie",
    "publishedDatetime": "2021-12-18 11:32:33"
  },
  "prevPost": {
    "id": "3138816",
    "title": "Request : Jilllll",
    "publishedDatetime": "2021-12-16 17:42:25"
  },
  "imageForShare": "https://pixiv.pximg.net/c/1200x630_90_a2_g5/fanbox/public/images/post/3143003/cover/pW7K0YQtAREnHt8sWmnyBu8d.jpeg"
}
    

Thank you in advance for the fix.

@Nandaka
Copy link
Owner

Nandaka commented Feb 23, 2022

I can modify so it will shown in the html page:
image

and listed in the descriptionUrlList
image

I cannot do auto download the content in the iframe.

Nandaka added a commit that referenced this issue Feb 23, 2022
@Nandaka Nandaka closed this as completed Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant