Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit c5c7aa5

Browse files
author
Brad Miller
committed
remove _vid suffix
1 parent dbdcd5b commit c5c7aa5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

runestone/video/video.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def run(self):
191191
self.options['http'] = 'https'
192192
if not self.options.get('divid'):
193193
self.options['divid'] = self.arguments[0]
194-
194+
195195
res = self.html % self.options
196196
addHTMLToDB(self.options['divid'], self.options['basecourse'], res)
197197
raw_node = nodes.raw(self.block_text, res, format='html')
@@ -212,27 +212,27 @@ class Youtube(IframeVideo):
212212
"""
213213
html = '''
214214
<div class="runestone" style="margin-left: auto; margin-right:auto">
215-
<div id="%(divid)s_vid" class="align-%(align)s youtube-video" data-video-height="%(height)d" data-video-width="%(width)d" data-video-videoid="%(video_id)s" data-video-divid="%(divid)s_vid" data-video-start="%(start)d" data-video-end="%(end)s" ></div>
215+
<div id="%(divid)s" class="align-%(align)s youtube-video" data-video-height="%(height)d" data-video-width="%(width)d" data-video-videoid="%(video_id)s" data-video-divid="%(divid)s" data-video-start="%(start)d" data-video-end="%(end)s" ></div>
216216
</div>
217217
'''
218-
218+
219219
option_spec = IframeVideo.option_spec
220220
option_spec.update({
221221
'start': directives.nonnegative_int,
222222
'end': directives.nonnegative_int
223223
})
224-
224+
225225
def run(self):
226226
if not self.options.get('start'):
227227
self.options['start'] = 0
228-
228+
229229
if not self.options.get('end'):
230230
self.options['end'] = -1
231-
231+
232232
raw_node = super(Youtube, self).run()
233233
addQuestionToDB(self)
234234
return raw_node
235-
235+
236236

237237
class Vimeo(IframeVideo):
238238
"""

0 commit comments

Comments
 (0)