]> Raphaƫl G. Git Repositories - youtubedl/commitdiff
Imported Debian patch 2007.06.22-1
authorRobert S. Edmonds <edmonds@debian.org>
Fri, 22 Jun 2007 00:42:57 +0000 (20:42 -0400)
committerRobert S. Edmonds <edmonds@debian.org>
Sat, 18 Jun 2011 05:16:46 +0000 (02:16 -0300)
debian/changelog
debian/dirs [deleted file]
debian/install [new file with mode: 0644]
debian/rules
youtube-dl

index a3fd0d7485292cadc369cdfcffa71c7b0e39d48a..47eb40e066caffb41a3089a7700fb4f1a4a6d026 100644 (file)
@@ -1,3 +1,10 @@
+youtube-dl (2007.06.22-1) unstable; urgency=low
+
+  * New upstream release:
+    - regex update.
+
+ -- Robert S. Edmonds <edmonds@debian.org>  Thu, 21 Jun 2007 20:42:57 -0400
+
 youtube-dl (2007.06.06-1) unstable; urgency=low
 
   * New upstream release:
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644 (file)
index e772481..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/bin
diff --git a/debian/install b/debian/install
new file mode 100644 (file)
index 0000000..4aff75b
--- /dev/null
@@ -0,0 +1 @@
+youtube-dl usr/bin
index 90317821b4125c2a77751a6dbe32b3537494aa58..8271a237e289a0034daf42dd18cb0feb69bfe6a9 100755 (executable)
@@ -10,18 +10,15 @@ install: build
        dh_testdir
        dh_testroot
        dh_clean -k 
-       dh_installdirs
-
-       install -m 0755 $(CURDIR)/youtube-dl $(CURDIR)/debian/youtube-dl/usr/bin
+       dh_install
 
+binary-arch:
 binary-indep: build install
-
-binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
-       dh_installman $(CURDIR)/debian/youtube-dl.1
+       dh_installman debian/youtube-dl.1
        dh_compress
        dh_fixperms
        dh_installdeb
index 3ad5cd833c05da282546f57385a1930df87f983b..98fbeed03e75522eba0dba0ae466590076f3a963 100755 (executable)
@@ -40,7 +40,7 @@ import urllib2
 
 # Global constants
 const_video_url_str = 'http://www.youtube.com/watch?v=%s'
-const_video_url_re = re.compile(r'^((?:http://)?(?:www\d*\.)?youtube\.com/(?:v/|(?:watch(?:\.php)?)?\?(?:.+&)?v=))?([0-9A-Za-z_-]+)(?(1)[&/].*)?$')
+const_video_url_re = re.compile(r'^((?:http://)?(?:\w+\.)?youtube\.com/(?:v/|(?:watch(?:\.php)?)?\?(?:.+&)?v=))?([0-9A-Za-z_-]+)(?(1)[&/].*)?$')
 const_login_url_str = 'http://www.youtube.com/login?next=/watch%%3Fv%%3D%s'
 const_login_post_str = 'current_form=loginForm&next=%%2Fwatch%%3Fv%%3D%s&username=%s&password=%s&action_login=Log+In'
 const_age_url_str = 'http://www.youtube.com/verify_age?next_url=/watch%%3Fv%%3D%s'
@@ -191,7 +191,7 @@ def calc_speed(start, now, bytes):
 
 # Create the command line options parser and parse command line
 cmdl_usage = 'usage: %prog [options] video_url'
-cmdl_version = '2007.06.06'
+cmdl_version = '2007.06.22'
 cmdl_parser = optparse.OptionParser(usage=cmdl_usage, version=cmdl_version, conflict_handler='resolve')
 cmdl_parser.add_option('-h', '--help', action='help', help='print this help text and exit')
 cmdl_parser.add_option('-v', '--version', action='version', help='print program version and exit')