Index: trunk/phase3/js2/remoteMwEmbed.js |
— | — | @@ -91,16 +91,16 @@ |
92 | 92 | // Parsed values: |
93 | 93 | var src = ''; |
94 | 94 | var duration = ''; |
95 | | - var wikiTitleKey = $j( '#'+vidId + ' a').attr('href').replace('\/wiki\/', ''); |
| 95 | + var wikiTitleKey = $j( '#'+vidId + ' img').attr('alt').replace(' ', '_'); |
96 | 96 | |
97 | 97 | var re = new RegExp( /videoUrl(":?\s*)*([^&]*)/ ); |
98 | | - src = re.exec( $j( '#'+vidId).html() )[2]; |
| 98 | + src = re.exec( $j( '#'+vidId ).html() )[2]; |
99 | 99 | |
100 | 100 | var re = new RegExp( /length(":?\s*)*([^&]*)/ ); |
101 | | - duration = re.exec( $j( '#'+vidId).html() )[2]; |
| 101 | + duration = re.exec( $j( '#'+vidId ).html() )[2]; |
102 | 102 | |
103 | 103 | var re = new RegExp( /offset(":?\s*)*([^&]*)/ ); |
104 | | - offset = re.exec( $j( '#'+vidId).html() )[2]; |
| 104 | + offset = re.exec( $j( '#'+vidId ).html() )[2]; |
105 | 105 | var offset_attr = offset ? 'startOffset="' + offset + '"' : ''; |
106 | 106 | |
107 | 107 | if( src ) { |