-
Notifications
You must be signed in to change notification settings - Fork 317
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
Introduce medium importer #499
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments. LGTM
Hello @sumanmaity112,
|
Hi @ashmaroli
|
The render_audio documentation was something I asked to be like that. Before it was too vague. Perhaps now it's too specific. This option is basically only useful if you have a podcast RSS feed I think. |
Maybe, I am also not sure. This option was there before my changes in RSS importer. |
"render_audio" => options.fetch("render_audio", false), | ||
"canonical_link" => options.fetch("canonical_link", false), | ||
# Add existing tags from Medium post to front matter using `category` subfield on the RSS <item> | ||
"extract_tags" => "category", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why not support all of the RSS options? Should we just suggest to users on the docs page for Medium to use the RSS importer and show them how to use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why not support all of the RSS options?
If you see all the options from RSS importer is there except tag.
Should we just suggest to users on the docs page for Medium to use the RSS importer and show them how to use it?
It's possible but it'll be little verbose. Currently this Medium importer is just the wrapper for RSS importer.
def self.process(options) | ||
Importers::RSS.process({ | ||
"source" => "https://medium.com/feed/@#{options.fetch("username")}", | ||
"render_audio" => options.fetch("render_audio", false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do Medium articles typically have audio?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Till now I haven't found any post with audio option. But if I am not wrong, it's possible to add video in medium post
Thank you for making the changes as suggested, @sumanmaity112. I have pushed a commit to your branch. Do run |
I have some enquiries remaining @sumanmaity112.
|
Hi @ashmaroli,
This is depends on the developer. If a new feature is getting added and same feature can be usable in case of Medium import then it's better to add it. According to me, we should have similar options set as RSS import. At the end, Medium import is nothing more than a wrapper around RSS importer with some default configurations.
I explained the comment little bit more, please do have a look.
I added mock RSS feed file generated from my personal Medium feed (only with couple of items). Please let me know if I have to change anything there. |
Needs a rebase to get @ashmaroli's latest commit to lock Psych to 4.x. I filed a request with ruby/setup-ruby: ruby/setup-ruby#412 |
@parkr Rebase is done. Now all CI verification also passed. |
Thank you! @jekyllbot: merge +minor |
Suman Maity: Introduce medium importer (#499) Merge pull request 499
No description provided.