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
Closed

AutoUpload media files #2

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

Comments

@ekaitz-zarraga
Copy link
Owner

@ekaitz-zarraga ekaitz-zarraga commented Feb 23, 2017

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

@ekaitz-zarraga
Copy link
Owner Author

@ekaitz-zarraga ekaitz-zarraga 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
Copy link
Owner Author

@ekaitz-zarraga ekaitz-zarraga commented Feb 23, 2017

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

@ekaitz-zarraga
Copy link
Owner Author

@ekaitz-zarraga ekaitz-zarraga commented Feb 23, 2017

Working on branch uploadImages

Made the first working version.

TODO: Handle thumbnails.

@ekaitz-zarraga
Copy link
Owner Author

@ekaitz-zarraga ekaitz-zarraga commented Feb 24, 2017

Done. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant