Replace invalid characters in shared item ID

main2
Bob Mottram 2019-11-02 10:21:21 +00:00
parent 995382608f
commit 544c8745ad
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def addShare(baseDir: str, \
if 'year' in durationList[1]:
durationSec=published+(int(durationList[0])*60*60*24*365)
itemID=displayName.replace(' ','')
itemID=displayName.replace(' ','').replace('/','-').replace('\\','-').replace('.','_').replace('?','-').replace('\n','').replace("","'")
# has an image for this share been uploaded?
imageUrl=None