mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix capitalisation of WordPress
This commit is contained in:
parent
f8f89a8476
commit
641b3ffa71
2 changed files with 4 additions and 4 deletions
|
|
@ -205,7 +205,7 @@ Release history
|
||||||
2.5 (2010-11-20)
|
2.5 (2010-11-20)
|
||||||
==================
|
==================
|
||||||
|
|
||||||
* Import from Wordpress
|
* Import from WordPress
|
||||||
* Added some new themes (martyalchin / wide-notmyidea)
|
* Added some new themes (martyalchin / wide-notmyidea)
|
||||||
* First bug report!
|
* First bug report!
|
||||||
* Linkedin support
|
* Linkedin support
|
||||||
|
|
|
||||||
|
|
@ -101,12 +101,12 @@ def decode_wp_content(content, br=True):
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def get_items(xml):
|
def get_items(xml):
|
||||||
"""Opens a wordpress xml file and returns a list of items"""
|
"""Opens a WordPress xml file and returns a list of items"""
|
||||||
try:
|
try:
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
error = ('Missing dependency '
|
error = ('Missing dependency '
|
||||||
'"BeautifulSoup4" and "lxml" required to import Wordpress XML files.')
|
'"BeautifulSoup4" and "lxml" required to import WordPress XML files.')
|
||||||
sys.exit(error)
|
sys.exit(error)
|
||||||
with open(xml, encoding='utf-8') as infile:
|
with open(xml, encoding='utf-8') as infile:
|
||||||
xmlfile = infile.read()
|
xmlfile = infile.read()
|
||||||
|
|
@ -586,7 +586,7 @@ def get_attachments(xml):
|
||||||
return attachedposts
|
return attachedposts
|
||||||
|
|
||||||
def download_attachments(output_path, urls):
|
def download_attachments(output_path, urls):
|
||||||
"""Downloads wordpress attachments and returns a list of paths to
|
"""Downloads WordPress attachments and returns a list of paths to
|
||||||
attachments that can be associated with a post (relative path to output
|
attachments that can be associated with a post (relative path to output
|
||||||
directory). Files that fail to download, will not be added to posts"""
|
directory). Files that fail to download, will not be added to posts"""
|
||||||
locations = []
|
locations = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue