The reason youtube-dl can't extract the title or nickname from the page, is that the html has changed. More specifically, there's a lot of extra whitespace inside the <title> tag now.

Here's a patch against the version 2008.03.22-1 (in Ubuntu 9.10):


--- /usr/bin/youtube-dl 2008-05-08 18:37:03.000000000 +0200
+++ /home/rhesa/bin/youtube-dl  2009-11-16 16:40:55.000000000 +0100
@@ -54,7 +54,7 @@
 const_age_post_str = 'next_url=%%2Fwatch%%3Fv%%3D%s&action_confirm=Confirm'
 const_url_t_param_re = re.compile(r', "t": "([^"]+)"')
 const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s'
-const_video_title_re = re.compile(r'<title>YouTube - ([^<]*)</title>', re.M | re.I) +const_video_title_re = re.compile(r'<title>\s*YouTube\s*-\s*([^<]*)\s*</title>', re.M | re.I)

 # Print error message, followed by standard advice information, and then exit
 def error_advice_exit(error_text):



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to