Private GIT

Skip to content
Snippets Groups Projects
Commit 98b277e3 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Merge pull request #176 from gordonturner/tivo

Replacing smartquotes with dummer, but happier, normal quotes.
parents 326cfe10 c669418b
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,15 @@ class TIVOMetadata(generic.GenericMetadata):
# Write the synopsis of the video here.
data += ("description : " + curEpToWrite.description + "\n")
# Micrsoft Word's smartquotes can die in a fire.
sanitizedDescription = curEpToWrite.description
# Replace double curly quotes
sanitizedDescription = sanitizedDescription.replace(u"\u201c", "\"").replace(u"\u201d", "\"")
# Replace single curly quotes
sanitizedDescription = sanitizedDescription.replace(u"\u2018", "'").replace(u"\u2019", "'").replace(u"\u02BC", "'")
data += ("description : " + sanitizedDescription + "\n")
# Usually starts with "SH" and followed by 6-8 digits.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment