[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [235] Fix crash in Dailymotion when there are n
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [235] Fix crash in Dailymotion when there are no HD links found. |
Date: |
Sun, 08 Jan 2012 09:53:56 +0000 |
Revision: 235
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=235
Author: valkov
Date: 2012-01-08 09:53:55 +0000 (Sun, 08 Jan 2012)
Log Message:
-----------
Fix crash in Dailymotion when there are no HD links found.
Modified Paths:
--------------
trunk/src/lm_site_dailymotion.js
Modified: trunk/src/lm_site_dailymotion.js
===================================================================
--- trunk/src/lm_site_dailymotion.js 2011-12-05 18:35:21 UTC (rev 234)
+++ trunk/src/lm_site_dailymotion.js 2012-01-08 09:53:55 UTC (rev 235)
@@ -252,7 +252,7 @@
var hd_links = this.extract_dailymotion_links(client.responseText);
object_data.link = hd_links ? hd_links[hd_links.length-1].url : null;
- object_data.hd_links = hd_links.length ? hd_links : null;
+ object_data.hd_links = (hd_links && hd_links.length) ? hd_links : null;
// See "A note on cookies"
if (/restore/i.test(this.process_cookies))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [235] Fix crash in Dailymotion when there are no HD links found.,
Ivaylo Valkov <=