web/res/js/LdtPlayer-release.js
changeset 535 8276f3ff7a3f
parent 534 0a2505c3b547
child 573 6ec62b3610c8
--- a/web/res/js/LdtPlayer-release.js	Mon Mar 05 18:41:11 2012 +0100
+++ b/web/res/js/LdtPlayer-release.js	Tue Mar 06 13:22:18 2012 +0100
@@ -4274,7 +4274,7 @@
   if (typeof(view_type) === "undefined") {
     view_type = this._serializer.getNonTweetIds()[0];  
   }
-  this.positionMarker = this.selector.children(":first");
+  this.positionMarker = this.selector.find(".Ldt-SegmentPositionMarker");
   
   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));
 
@@ -5163,6 +5163,7 @@
         _words = {},
         _showTitle = !this._config.excludeTitle,
         _showDescription = !this._config.excludeDescription,
+        _excludePattern = this._config.excludePattern || null,
         _tagCount = this._config.tagCount || 30;
     if (typeof this._config.excludeWords !== "undefined" && this._config.excludeWords.length) {
         IriSP._(this._config.excludeWords).each(function(_w) {
@@ -5174,7 +5175,7 @@
        if (_annotation.content && _annotation.content.description) {
            var _txt = (_showTitle ? _annotation.content.title : '') + ' ' + (_showDescription ? _annotation.content.description : '')
            IriSP._(_txt.toLowerCase().replace(_urlRegExp, '').match(_regexpword)).each(function(_mot) {
-               if (_stopWords.indexOf(_mot) == -1) {
+               if (_stopWords.indexOf(_mot) == -1 && (_excludePattern == null || !_excludePattern.test(_mot))) {
                    _words[_mot] = 1 + (_words[_mot] || 0);
                }
            })