]> Raphaël G. Git Repositories - youtubedl/commitdiff
Imported Debian patch 2011.10.19-2
authorRogério Brito <rbrito@ime.usp.br>
Sat, 22 Oct 2011 03:16:31 +0000 (01:16 -0200)
committerRogério Brito <rbrito@ime.usp.br>
Fri, 18 Nov 2011 21:24:18 +0000 (19:24 -0200)
debian/changelog
debian/patches/0001-Fix-downloading-of-videos-from-facebook.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/source/local-options [deleted file]

index 732ca4a531463f42d2b633efb2ee54242f641273..af7d3615118126d84813210ffd181ad8eb10234e 100644 (file)
@@ -1,3 +1,9 @@
+youtube-dl (2011.10.19-2) unstable; urgency=low
+
+  * Add patch to fix downloading from facebook.
+
+ -- Rogério Brito <rbrito@ime.usp.br>  Sat, 22 Oct 2011 01:16:31 -0200
+
 youtube-dl (2011.10.19-1) unstable; urgency=low
 
   * Imported Upstream version 2011.10.19. Highlights:
 youtube-dl (2011.10.19-1) unstable; urgency=low
 
   * Imported Upstream version 2011.10.19. Highlights:
diff --git a/debian/patches/0001-Fix-downloading-of-videos-from-facebook.patch b/debian/patches/0001-Fix-downloading-of-videos-from-facebook.patch
new file mode 100644 (file)
index 0000000..a0023e0
--- /dev/null
@@ -0,0 +1,34 @@
+From 4b71bc3cfef0672726beaaa26e1c57c7eca33790 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
+Date: Sat, 22 Oct 2011 01:12:46 -0200
+Subject: [PATCH] Fix downloading of videos from facebook.
+
+---
+ youtube-dl |    6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+--- a/youtube-dl
++++ b/youtube-dl
+@@ -2712,8 +2712,9 @@
+       _VALID_URL = r'^(?:https?://)?(?:\w+\.)?facebook\.com/video/video\.php\?(?:.*?)v=(?P<ID>\d+)(?:.*)'
+       _LOGIN_URL = 'https://login.facebook.com/login.php?m&next=http%3A%2F%2Fm.facebook.com%2Fhome.php&'
+       _NETRC_MACHINE = 'facebook'
+-      _available_formats = ['highqual', 'lowqual']
++      _available_formats = ['video', 'highqual', 'lowqual']
+       _video_extensions = {
++              'video': 'mp4',
+               'highqual': 'mp4',
+               'lowqual': 'mp4',
+       }
+@@ -2741,10 +2742,9 @@
+       def _parse_page(self, video_webpage):
+               """Extract video information from page"""
+               # General data
+-              data = {'title': r'class="video_title datawrap">(.*?)</',
++              data = {'title': r'\("video_title", "(.*?)"\)',
+                       'description': r'<div class="datawrap">(.*?)</div>',
+                       'owner': r'\("video_owner_name", "(.*?)"\)',
+-                      'upload_date': r'data-date="(.*?)"',
+                       'thumbnail':  r'\("thumb_url", "(?P<THUMB>.*?)"\)',
+                       }
+               video_info = {}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..8961346
--- /dev/null
@@ -0,0 +1 @@
+0001-Fix-downloading-of-videos-from-facebook.patch
diff --git a/debian/source/local-options b/debian/source/local-options
deleted file mode 100644 (file)
index 4aceb10..0000000
+++ /dev/null
@@ -1 +0,0 @@
-unapply-patches