Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -271,16 +271,16 @@ |
272 | 272 | // Try to insert the track source: |
273 | 273 | var textElm = document.createElement( 'track' ); |
274 | 274 | $j( textElm ).attr({ |
275 | | - 'category' : 'SUB', |
| 275 | + 'category' : 'SUB', |
276 | 276 | 'srclang' : textSource.srclang, |
277 | | - 'type' : _this.timedTextExtMime[ textSource.extension ], |
| 277 | + 'type' : _this.timedTextExtMime[ textSource.extension ], |
278 | 278 | 'titleKey' : textSource.titleKey |
279 | 279 | }); |
280 | 280 | |
281 | 281 | // Build the url for downloading the text: |
282 | 282 | $j( textElm ).attr('src', |
283 | 283 | _this.textProvider.apiUrl.replace('api.php', 'index.php?title=') + |
284 | | - textSource.titleKey + '&action=raw&ctype=text/x-srt' |
| 284 | + encodeURIComponent( textSource.titleKey ) + '&action=raw&ctype=text/x-srt' |
285 | 285 | ); |
286 | 286 | |
287 | 287 | // Add a title |