Browse Source

Merge branch 'fs#160-urlencoded-chars' into develop

develop
Jonathan Golder 7 years ago
parent
commit
3bd17ce692
  1. 4
      lib/redfam.py

4
lib/redfam.py

@ -28,6 +28,7 @@ Provides classes for working with RedFams
import hashlib
import locale
import re
import urllib.parse
from datetime import datetime
import mwparserfromhell as mwparser # noqa
@ -291,6 +292,9 @@ class RedFamParser( RedFam ):
# Make sure first letter is uppercase
article = article[0].upper() + article[1:]
# Unquote possible url encoded special chars
article = urllib.parse.unquote( article )
# Split in title and anchor part
article = article.split("#", 1)
# Replace underscores in title with spaces

Loading…
Cancel
Save