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] 9999 Unsupported embed provider, please update content_provider.json for some post formats #716

Closed
2 tasks done
AgentThirteen opened this issue May 24, 2020 · 3 comments

Comments

@AgentThirteen
Copy link

Prerequisites

  • Did you read FAQ section?
  • Did you test with the latest releases or commit ?

Description

SoundCloud (and possibly other video/sound formats) FANBOX posts will crash the script with the following error message:

9999 Unsupported embed provider = soundcloud for post = *, please update content_provider.json.
hasDumpPage=Y
pageData={'id': '*', 'title': '*', 'coverImageUrl': *, 'feeRequired': 0, 'publishedDatetime': '*', 'updatedDatetime': '*', 'type': 'video', 'body': {'text': '', 'video': {'serviceProvider': 'soundcloud', 'videoId': '*'}}, 'tags': [], 'excerpt': '', 'isLiked': *, 'likeCount': *, 'commentCount': *, 'restrictedFor': None, 'user': {'userId': '*', 'name': '*', 'iconUrl': '*'}, 'creatorId': '*', 'status': 'published'}

Workaround: Manually creating a skip post rule for such posts.

Steps to Reproduce

  1. Fetch any artist with a public or non-restricted post of that kind.
  2. As soon as the script reaches an unsupported post format, fatals and exits.

Expected behavior: Downloading the post and attachment or skipping with a warning.

Actual behavior: Fatal.

Versions

3a9b74c

@Nandaka
Copy link
Owner

Nandaka commented May 24, 2020

you can update the content_provider.json file and if possible upload it here.

@AgentThirteen
Copy link
Author

content_provider.json.txt

Thanks for the pointers and very quick reply Nandaka.

I had to upload as txt because github wouldn't let me attach the JSON directly.

This should work fine when embedded in the HTML file with HTML file option on but I couldn't get the contentId anywhere from the API so I went with videoId alone.

The API flow now works properly but make sure you edit it to something less clunky if the content provider entry is weird.

Nandaka added a commit that referenced this issue May 25, 2020
@Nandaka
Copy link
Owner

Nandaka commented May 25, 2020

It should throw a message to update the content_provider.json.
For the key, you only need to use whichever exists in the embed reply.

https://github.com/Nandaka/PixivUtil2/blob/master/PixivModelFanbox.py#L265

@Nandaka Nandaka closed this as completed Jul 12, 2020
byjtje pushed a commit to byjtje/PixivUtil2 that referenced this issue Oct 30, 2020
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

2 participants