From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jan 26 03:00:04 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FD6016A421 for ; Sat, 26 Jan 2008 03:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E6D0913C455 for ; Sat, 26 Jan 2008 03:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q303xT023920 for ; Sat, 26 Jan 2008 03:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0Q303sY023919; Sat, 26 Jan 2008 03:00:03 GMT (envelope-from gnats) Resent-Date: Sat, 26 Jan 2008 03:00:03 GMT Resent-Message-Id: <200801260300.m0Q303sY023919@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, barbara Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 626E316A419 for ; Sat, 26 Jan 2008 02:52:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4A62313C465 for ; Sat, 26 Jan 2008 02:52:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q2pAZQ092942 for ; Sat, 26 Jan 2008 02:51:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0Q2pAEK092941; Sat, 26 Jan 2008 02:51:10 GMT (envelope-from nobody) Message-Id: <200801260251.m0Q2pAEK092941@www.freebsd.org> Date: Sat, 26 Jan 2008 02:51:10 GMT From: barbara To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/119990: www/youtube_dl requires an update X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 03:00:04 -0000 >Number: 119990 >Category: ports >Synopsis: www/youtube_dl requires an update >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Jan 26 03:00:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: barbara >Release: 6.3-STABLE >Organization: >Environment: FreeBSD satanasso.local.net 6.3-STABLE FreeBSD 6.3-STABLE #0: Sat Jan 19 02:21:56 CET 2008 root@satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO i386 >Description: The author of youtube-dl has released a new version on 2008-01-24 as it was not working anymore. The ports needs to be updated accordingly. >How-To-Repeat: $ cd /usr/ports/www/youtube_dl && make install clean $ cd && youtube-dl -t http://www.youtube.com/watch?v=o3TGM0T1CvE Retrieving video webpage... done. Extracting video title... done. Extracting URL "t" parameter... failed. Error: unable to extract URL "t" parameter. Try again several times. It may be a temporary problem. Other typical problems: * Video no longer exists. * Video requires age confirmation but you did not provide an account. * You provided the account data, but it is not valid. * The connection was cut suddenly for some reason. * YouTube changed their system, and the program no longer works. Try to confirm you are able to view the video using a web browser. Use the same video URL and account information, if needed, with this program. When using a proxy, make sure http_proxy has http://host:port format. Try again several times and contact me if the problem persists. >Fix: The ports needs to be updated. A patch is attached. After applying that, the .orig files have to be manually removed. Sorry about that but I can't find a better way to handle this (it's 3:50 AM here!). Patch attached with submission follows: --- Makefile.orig 2008-01-26 03:34:17.000000000 +0100 +++ Makefile 2008-01-26 03:17:28.000000000 +0100 @@ -6,7 +6,7 @@ # PORTNAME= youtube_dl -PORTVERSION= 2007.10.09 +PORTVERSION= 2008.01.24 CATEGORIES= www MASTER_SITES= http://www.arrakis.es/~rggi3/youtube-dl/ DISTNAME= youtube-dl-${PORTVERSION} --- distinfo.orig 2008-01-26 03:34:33.000000000 +0100 +++ distinfo 2008-01-26 01:05:35.000000000 +0100 @@ -1,3 +1,3 @@ -MD5 (youtube-dl-2007.10.09) = a721e6f3cbd44777bbaa73b45c4a6117 -SHA256 (youtube-dl-2007.10.09) = f1773a2d98d9c2d5cab2c7ff2526c6c1fe91c13f6588d1b0af8849989efa6949 -SIZE (youtube-dl-2007.10.09) = 15356 +MD5 (youtube-dl-2008.01.24) = 48a7df743398bbfdf2710962000886cb +SHA256 (youtube-dl-2008.01.24) = 6e98f3abfa79a038e578d45441bb6675ac6d4880bae4b801d5125e364e60d5c5 +SIZE (youtube-dl-2008.01.24) = 14643 --- files/patch-youtube-dl.orig 2008-01-26 03:34:53.000000000 +0100 +++ files/patch-youtube-dl 2008-01-26 02:53:51.000000000 +0100 @@ -1,8 +1,8 @@ ---- youtube-dl-orig Fri Aug 11 01:00:08 2006 -+++ youtube-dl Sat Aug 12 13:46:38 2006 +--- youtube-dl-orig 2008-01-24 18:13:29.000000000 +0100 ++++ youtube-dl 2008-01-26 02:25:54.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!%%PYTHON_CMD%% # - # Copyright (c) 2006 Ricardo Garcia Gonzalez + # Copyright (c) 2006-2008 Ricardo Garcia Gonzalez # --- files/ffmpeg.patch.orig 2008-01-26 03:34:40.000000000 +0100 +++ files/ffmpeg.patch 2008-01-26 02:53:41.000000000 +0100 @@ -1,14 +1,14 @@ ---- youtube-dl.orig Wed Mar 28 22:12:49 2007 -+++ youtube-dl Wed Mar 28 22:11:38 2007 -@@ -203,6 +203,7 @@ +--- youtube-dl.orig 2008-01-24 18:13:29.000000000 +0100 ++++ youtube-dl 2008-01-26 02:40:32.000000000 +0100 +@@ -208,6 +208,7 @@ cmdl_parser.add_option('-t', '--title', action='store_true', dest='use_title', help='use title in file name') cmdl_parser.add_option('-l', '--literal', action='store_true', dest='use_literal', help='use literal title in file name') cmdl_parser.add_option('-n', '--netrc', action='store_true', dest='use_netrc', help='use .netrc authentication data') +cmdl_parser.add_option('-a', '--avi', action='store_true', dest='use_avi', help='output file in avi format') cmdl_parser.add_option('-g', '--get-url', action='store_true', dest='get_url', help='print final video URL only') + cmdl_parser.add_option('-2', '--title-too', action='store_true', dest='get_title', help='used with -g, print title too') (cmdl_opts, cmdl_args) = cmdl_parser.parse_args() - -@@ -275,13 +276,21 @@ +@@ -276,7 +277,11 @@ # Get output file name if cmdl_opts.outfile is None: @@ -21,6 +21,17 @@ else: video_filename = cmdl_opts.outfile +@@ -311,11 +316,19 @@ + prefix = title_string_norm(video_title) + else: + prefix = title_string_touch(video_title) +- video_filename = '%s-%s.flv' % (prefix, video_url_id) ++ if cmdl_opts.use_avi: ++ ext = 'avi' ++ else: ++ ext = 'flv' ++ video_filename = '%s-%s.%s' % (prefix, video_url_id, ext) + # Check name -if not video_filename.lower().endswith('.flv'): - sys.stderr.write('Warning: video file name does not end in .flv\n') @@ -31,30 +42,17 @@ + if not video_filename.lower().endswith('.flv'): + sys.stderr.write('Warning: video file name does not end in .flv\n') - # Test writable file - if not (cmdl_opts.simulate or cmdl_opts.get_url): -@@ -328,7 +337,10 @@ - if cmdl_opts.simulate or cmdl_opts.get_url: + # Retrieve video data + try: +@@ -334,7 +347,10 @@ sys.exit() -- video_file = open(video_filename, 'wb') -+ if cmdl_opts.use_avi: -+ video_file = os.popen('ffmpeg -y -i - "%s" > %s 2> %s' % (video_filename, os.path.devnull, os.path.devnull), 'wb') -+ else: -+ video_file = open(video_filename, 'wb') try: - video_len = long(video_data.info()['Content-length']) - video_len_str = format_bytes(video_len) -@@ -382,7 +394,11 @@ - prefix = title_string_norm(video_title) - else: - prefix = title_string_touch(video_title) -- final_filename = '%s-%s.flv' % (prefix, video_url_id) +- video_file = open(video_filename, 'wb') + if cmdl_opts.use_avi: -+ ext = 'avi' ++ video_file = os.popen('ffmpeg -y -i - "%s" > %s 2> %s' % (video_filename, os.path.devnull, os.path.devnull), 'wb') + else: -+ ext = 'flv' -+ final_filename = '%s-%s.%s' % (prefix, video_url_id, ext) - os.rename(video_filename, final_filename) - cond_print('Video file renamed to %s\n' % final_filename) - ++ video_file = open(video_filename, 'wb') + except (IOError, OSError): + sys.exit('Error: unable to open "%s" for writing.' % video_filename) + try: >Release-Note: >Audit-Trail: >Unformatted: