From ea02372c965e22205bd6a4c772eba0801ce94e87 Mon Sep 17 00:00:00 2001 From: "M.Yasoob Khalid" Date: Fri, 28 Jun 2013 20:55:00 +0500 Subject: [PATCH] Added test for http://ringtv.craveonline.com/ --- test/tests.json | 10 ++++++++++ youtube_dl/extractor/ringtv.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/test/tests.json b/test/tests.json index d92f23963..abaf4d74d 100644 --- a/test/tests.json +++ b/test/tests.json @@ -687,5 +687,15 @@ "upload_date": "20130627", "description": "Check out this video where some of the basics of Arma III is explained." } + }, + { + "name": "RingTv", + "url": "http://ringtv.craveonline.com/videos/video/746619-canelo-alvarez-talks-about-mayweather-showdown", + "file": "746619.mp4", + "md5": "7c46b4057d22de32e0a539f017e64ad3", + "info_dict": { + "title": "Canelo Alvarez talks about Mayweather showdown", + "description": "Saul \"Canelo\" Alvarez spoke to the media about his Sept. 14 showdown with Floyd Mayweather after their kick-off presser in NYC. Canelo is motivated and confident that he will have the speed and gameplan to beat the pound-for-pound king." + } } ] diff --git a/youtube_dl/extractor/ringtv.py b/youtube_dl/extractor/ringtv.py index c03aedc45..4c5c7f97b 100644 --- a/youtube_dl/extractor/ringtv.py +++ b/youtube_dl/extractor/ringtv.py @@ -13,7 +13,7 @@ class RingTvIE(InfoExtractor): title = self._search_regex(r'(.+?)', webpage, 'video title').replace(' | RingTV','') description = self._search_regex(r'
(.+?)
', - webpage, 'Description') + webpage, 'Description').replace('\\','') final_url = "http://ringtv.craveonline.springboardplatform.com/storage/ringtv.craveonline.com/conversion/%s.mp4" %(str(video_id)) thumbnail_url = "http://ringtv.craveonline.springboardplatform.com/storage/ringtv.craveonline.com/snapshots/%s.jpg" %(str(video_id)) ext = final_url.split('.')[-1]