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

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

[linterna-magica-commit] [291] Added support for live streams at YouTube


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [291] Added support for live streams at YouTube.
Date: Sun, 01 Jul 2012 18:40:12 +0000

Revision: 291
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=291
Author:   valkov
Date:     2012-07-01 18:40:12 +0000 (Sun, 01 Jul 2012)
Log Message:
-----------
Added support for live streams at YouTube. Bugs #36759. #future_release_0.0.13

Ticket Links:
------------
    http://savannah.gnu.org/bugs/?36759

Modified Paths:
--------------
    trunk/src/lm_site_youtube.js

Modified: trunk/src/lm_site_youtube.js
===================================================================
--- trunk/src/lm_site_youtube.js        2012-06-10 20:26:15 UTC (rev 290)
+++ trunk/src/lm_site_youtube.js        2012-07-01 18:40:12 UTC (rev 291)
@@ -260,13 +260,17 @@
        {
            // Usually the links have the following pattern
            // (itag=fmt_id)*url=URL&type=video/...&(itag=fmt_id)*
-           var link = fmt[url].match(/url=([^&]+)/);
+           var link = fmt[url].match(/(url|conn)=([^&]+)/);
            var fmt_id = fmt[url].match(/itag=([0-9]+)/);
 
            if (fmt_id && link)
            {
                links++;
                link = unescape(link[link.length-1]);
+               // Live streams support. 
+               // See bugs #36759:
+               // https://savannah.nongnu.org/bugs/?36759
+               link = link.replace(/\\u0026stream=/, '/');
                link = link.split(/\\u0026/)[0];
 
                map[fmt_id[fmt_id.length-1]] =  link;




reply via email to

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