youtube-dl update

This commit is contained in:
Fabien Valthier 2011-10-01 12:35:00 +10:00
parent 0e339a46b0
commit 1858dd668c
2 changed files with 4 additions and 34 deletions

View File

@ -5,26 +5,21 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=youtube-dl
pkgver=2011.08.04
pkgver=2011.09.30
pkgrel=1
pkgdesc='A small command-line program to download videos from YouTube.com'
arch=('any')
url='http://rg3.github.com/youtube-dl/'
license=('custom')
depends=('python2')
source=("https://github.com/rg3/${pkgname}/raw/${pkgver}/${pkgname}"
support-playlist-urls.patch)
md5sums=('2538839c274fe7cd1568304e37545bde'
'562f5a71679f8f6ee5b5653ff9b9874f')
source=("https://github.com/rg3/${pkgname}/raw/${pkgver}/${pkgname}")
md5sums=('c70a72cd2e2a1699c0ef83148fbe38e6')
package() {
cd "${srcdir}"
# Fix FS#24506: Unable to download playlists
patch -Np1 -i "${srcdir}/support-playlist-urls.patch"
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' youtube-dl
install -D -m755 youtube-dl "${pkgdir}/usr/bin/youtube-dl"
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
grep License youtube-dl > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
grep license youtube-dl > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -1,25 +0,0 @@
From a509c7efcf9b6a0dd7dcb3c6d431c262c2985a93 Mon Sep 17 00:00:00 2001
From: Ori Avtalion <ori@avtalion.name>
Date: Tue, 17 May 2011 21:48:21 +0300
Subject: [PATCH] Support youtube.com/playlist?p= URLs
---
youtube-dl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/youtube-dl b/youtube-dl
index 3ac27a8..382fb98 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -2097,7 +2097,7 @@ class YahooSearchIE(InfoExtractor):
class YoutubePlaylistIE(InfoExtractor):
"""Information Extractor for YouTube playlists."""
- _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:(?:view_play_list|my_playlists|artist)\?.*?(p|a)=|user/.*?/user/|p/|user/.*?#[pg]/c/)([0-9A-Za-z]+)(?:/.*?/([0-9A-Za-z_-]+))?.*'
+ _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:(?:view_play_list|playlist|my_playlists|artist)\?.*?(p|a)=|user/.*?/user/|p/|user/.*?#[pg]/c/)([0-9A-Za-z]+)(?:/.*?/([0-9A-Za-z_-]+))?.*'
_TEMPLATE_URL = 'http://www.youtube.com/%s?%s=%s&page=%s&gl=US&hl=en'
_VIDEO_INDICATOR = r'/watch\?v=(.+?)&'
_MORE_PAGES_INDICATOR = r'(?m)>\s*Next\s*</a>'
--
1.7.5.4