youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 97f194c1fbda1b88874ef4f05e2c5b3862d33f8f
parent 4da769cccaf34efaacf620f1a2ea161cea8e9803
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Wed, 16 Jan 2013 09:55:45 +0100

twitch.tv: Use id as title if no title is present (Closes #638)

Diffstat:
Myoutube_dl/InfoExtractors.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py @@ -3541,10 +3541,12 @@ class JustinTVIE(InfoExtractor): video_extension = os.path.splitext(video_url)[1][1:] video_date = re.sub('-', '', clip['start_time'][:10]) video_uploader_id = clip.get('user_id', clip.get('channel_id')) + video_id = clip['id'] + video_title = clip.get('title', video_id) info.append({ - 'id': clip['id'], + 'id': video_id, 'url': video_url, - 'title': clip['title'], + 'title': video_title, 'uploader': clip.get('channel_name', video_uploader_id), 'uploader_id': video_uploader_id, 'upload_date': video_date,