Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33b2e47312 | |||
| 3bd17ce692 | |||
| 5f4640d5ff | |||
| 7e0456ae4f |
@@ -18,10 +18,12 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
|
|||||||
|
|
||||||
Versions
|
Versions
|
||||||
--------
|
--------
|
||||||
|
* test-v7
|
||||||
|
- Fixed problem with url encoded chars in article title
|
||||||
|
|
||||||
* test-v6
|
* test-v6
|
||||||
- jogobot status API enabled (Bot can be disabled onwiki)
|
- jogobot status API enabled (Bot can be disabled onwiki)
|
||||||
- Fixed Problem with space between article title and anchor
|
- Fixed problem with space between article title and anchor
|
||||||
|
|
||||||
* test-v5
|
* test-v5
|
||||||
- Feature _markpages_ working in full-automatic mode with _always_-flag
|
- Feature _markpages_ working in full-automatic mode with _always_-flag
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ Provides classes for working with RedFams
|
|||||||
import hashlib
|
import hashlib
|
||||||
import locale
|
import locale
|
||||||
import re
|
import re
|
||||||
|
import urllib.parse
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import mwparserfromhell as mwparser # noqa
|
import mwparserfromhell as mwparser # noqa
|
||||||
@@ -291,6 +292,9 @@ class RedFamParser( RedFam ):
|
|||||||
# Make sure first letter is uppercase
|
# Make sure first letter is uppercase
|
||||||
article = article[0].upper() + article[1:]
|
article = article[0].upper() + article[1:]
|
||||||
|
|
||||||
|
# Unquote possible url encoded special chars
|
||||||
|
article = urllib.parse.unquote( article )
|
||||||
|
|
||||||
# Split in title and anchor part
|
# Split in title and anchor part
|
||||||
article = article.split("#", 1)
|
article = article.split("#", 1)
|
||||||
# Replace underscores in title with spaces
|
# Replace underscores in title with spaces
|
||||||
|
|||||||
Reference in New Issue
Block a user