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

AutoUpload media files #2

Closed
ekaitz-zarraga opened this issue Feb 23, 2017 · 4 comments

Comments

Projects
None yet
1 participant
@ekaitz-zarraga
Copy link
Owner

commented Feb 23, 2017

Automatically check if URLs are local, if they are, upload files automagically.

@ekaitz-zarraga

This comment has been minimized.

Copy link
Owner Author

commented Feb 23, 2017

Can be done with pandoc filters.

Better if we move from pypandoc to panflute:

  • Can convert documents
  • Can handle filters

And Media methods from python-xml-rpc:
http://python-wordpress-xmlrpc.readthedocs.io/en/latest/examples/media.html?highlight=media

@ekaitz-zarraga

This comment has been minimized.

Copy link
Owner Author

commented Feb 23, 2017

We can make something like this with panflute:
https://gist.github.com/ekaitz-zarraga/80e7d07fca29b7403e38937125eb2a6b

@ekaitz-zarraga

This comment has been minimized.

Copy link
Owner Author

commented Feb 23, 2017

Working on branch uploadImages

Made the first working version.

TODO: Handle thumbnails.

@ekaitz-zarraga ekaitz-zarraga self-assigned this Feb 23, 2017

This was referenced Feb 24, 2017

@ekaitz-zarraga

This comment has been minimized.

Copy link
Owner Author

commented Feb 24, 2017

Done. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.