Commit e007b20f by Gregory Martin

bugfix

parent 07f1dea5
...@@ -120,7 +120,7 @@ class DeliverYoutube(): ...@@ -120,7 +120,7 @@ class DeliverYoutube():
'require_paid_subscription' 'require_paid_subscription'
] ]
print "%s : %s" % ("Generate CSV", str(self.video.edx_id)) print "%s : %s" % ("Generate CSV", str(self.video.edx_id))
'''
# TODO: Refactor this into centrally located util for escaping bad chars # TODO: Refactor this into centrally located util for escaping bad chars
if self.video.client_title is not None: if self.video.client_title is not None:
try: try:
...@@ -136,7 +136,7 @@ class DeliverYoutube(): ...@@ -136,7 +136,7 @@ class DeliverYoutube():
client_title += char client_title += char
else: else:
client_title = self.file client_title = self.file
'''
""" """
This is where we can add or subtract file attributes as needed This is where we can add or subtract file attributes as needed
...@@ -146,7 +146,7 @@ class DeliverYoutube(): ...@@ -146,7 +146,7 @@ class DeliverYoutube():
'filename': self.file, 'filename': self.file,
'channel': self.course.yt_channel, 'channel': self.course.yt_channel,
'custom_id': self.video.edx_id, 'custom_id': self.video.edx_id,
'title': client_title.replace(',', ''), 'title': self.video.edx_id, # >102 Chars will fail
'privacy': 'unlisted', 'privacy': 'unlisted',
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment