linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [398] Merginc r397 from trunk.


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [398] Merginc r397 from trunk.
Date: Mon, 01 Apr 2013 07:10:31 +0000

Revision: 398
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=398
Author:   valkov
Date:     2013-04-01 07:10:30 +0000 (Mon, 01 Apr 2013)
Log Message:
-----------
Merginc r397 from trunk. Fixes YouTube

Revision Links:
--------------
    http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=397

Modified Paths:
--------------
    branches/0.0.13/src/lm_site_youtube.js

Property Changed:
----------------
    branches/0.0.13/


Property changes on: branches/0.0.13
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/0.0.9:94
/branches/task-11216:102-156
/trunk:390-391,393
   + /branches/0.0.9:94
/branches/task-11216:102-156
/trunk:390-391,393,397

Modified: branches/0.0.13/src/lm_site_youtube.js
===================================================================
--- branches/0.0.13/src/lm_site_youtube.js      2013-04-01 07:00:41 UTC (rev 
397)
+++ branches/0.0.13/src/lm_site_youtube.js      2013-04-01 07:10:30 UTC (rev 
398)
@@ -353,7 +353,7 @@
 function()
 {
     var data = this.script_data;
-    if (!data.match(/yt\.playerConfig =/))
+    if (!data.match(/ytplayer\.config =/))
     {
        return null;
     }
@@ -392,10 +392,8 @@
        embed_id= embed_id[embed_id.length-1];
     }
 
-    var p = this.get_first_element_by_class("flash-player");
-    p = p ? p : this.get_first_element_by_class("html5-player");
+    var p = document.getElementById("movie_player").parentNode;
 
-
     if (!width || !height)
     {
        height = p ? p.clientHeight : null;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]