jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/575262 )
Change subject: add replace('|', ',')
......................................................................
add replace('|', ',')
Change-Id: I1588ab286614c33664236dc136987ea738fa2965
---
M scripts/flickrripper.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Shizhao: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/flickrripper.py b/scripts/flickrripper.py
index 5873ed5..c0038ee 100755
--- a/scripts/flickrripper.py
+++ b/scripts/flickrripper.py
@@ -226,7 +226,7 @@
title = re.sub('[;]', ',', title)
title = re.sub(r'[/+\\:]', '-', title)
title = re.sub('--+', '-', title)
- title = re.sub(',,+', ',', title)
+ title = re.sub('[,|]+', ',', title)
title = re.sub('[-,^]([.]|$)', r'\1', title)
title = title.replace(' ', '_')
title = title.strip('_')
--
To view, visit
https://gerrit.wikimedia.org/r/575262
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1588ab286614c33664236dc136987ea738fa2965
Gerrit-Change-Number: 575262
Gerrit-PatchSet: 3
Gerrit-Owner: Shizhao <shizhao(a)gmail.com>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Shizhao <shizhao(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Dvorapa <dvorapa(a)seznam.cz>