[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [52] Fix the parser fro Dailymotion HD links.
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [52] Fix the parser fro Dailymotion HD links. |
Date: |
Mon, 02 May 2011 08:58:11 +0000 |
Revision: 52
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=52
Author: valkov
Date: 2011-05-02 08:58:10 +0000 (Mon, 02 May 2011)
Log Message:
-----------
Fix the parser fro Dailymotion HD links.
Modified Paths:
--------------
trunk/src/lm_site_dailymotion.js
Modified: trunk/src/lm_site_dailymotion.js
===================================================================
--- trunk/src/lm_site_dailymotion.js 2011-04-28 13:32:07 UTC (rev 51)
+++ trunk/src/lm_site_dailymotion.js 2011-05-02 08:58:10 UTC (rev 52)
@@ -34,14 +34,15 @@
"sdurl"+
"(\\\"|\\\')*\\\s*(\\\=|\\\:|\\\,)\\\s*(\\\"|\\\')*"+
"(.*(\\\?auth\\\=[A-Za-z0-9\\\-\\\.]+)"+
- "(\\\&|\\\"|\\\'){1})\\\}",
+ "(\\\&|\\\"|\\\'){1})\\\,{1}",
"i");
var links = unescape(data).match(links_re);
if (links && links[0])
{
- links = links[0].split(/,/);
+ // There is not data after the last comma, it is end-of-match.
+ links = links[0].replace(/,$/, "").split(/,/);
var hd_links = new Array();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [52] Fix the parser fro Dailymotion HD links.,
Ivaylo Valkov <=