This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
237237class Vimeo (IframeVideo ):
238238 """
You can’t perform that action at this time.
0 commit comments