Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package youtube-dl for openSUSE:Factory 
checked in at 2023-06-30 19:58:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/youtube-dl (Old)
 and      /work/SRC/openSUSE:Factory/.youtube-dl.new.13546 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "youtube-dl"

Fri Jun 30 19:58:53 2023 rev:179 rq:1096042 version:2021.12.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/youtube-dl/youtube-dl.changes    2023-05-30 
22:03:06.347244877 +0200
+++ /work/SRC/openSUSE:Factory/.youtube-dl.new.13546/youtube-dl.changes 
2023-06-30 19:59:13.225767727 +0200
@@ -1,0 +2,6 @@
+Thu Jun 29 15:45:39 UTC 2023 - Matej Cepl <mc...@suse.com>
+
+- Add 10795-facebook-plugin.patch fixing download from
+  facebook.com/plugin URLs (gh#ytdl-org/youtube-dl#10795).
+
+-------------------------------------------------------------------

New:
----
  10795-facebook-plugin.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ youtube-dl.spec ++++++
--- /var/tmp/diff_new_pack.h3jnZv/_old  2023-06-30 19:59:14.041772581 +0200
+++ /var/tmp/diff_new_pack.h3jnZv/_new  2023-06-30 19:59:14.045772604 +0200
@@ -42,6 +42,9 @@
 # Patch from gh#yt-dlp/yt-dlp@149eb0bbf34f
 # Fix uploader_id extraction regexp
 Patch2:         fix-uploader-id-extraction.patch
+# PATCH-FIX-UPSTREAM 10795-facebook-plugin.patch gh#ytdl-org/youtube-dl#10795 
mc...@suse.com
+# Plugin to fix download from Facebook plugin URLs
+Patch3:         10795-facebook-plugin.patch
 BuildRequires:  make >= 4
 BuildRequires:  python3-devel
 BuildRequires:  python3-xml

++++++ 10795-facebook-plugin.patch ++++++
---
 youtube_dl/extractor/facebook.py |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -681,8 +681,7 @@ class FacebookIE(InfoExtractor):
 
 
 class FacebookPluginsVideoIE(InfoExtractor):
-    _VALID_URL = 
r'https?://(?:[\w-]+\.)?facebook\.com/plugins/video\.php\?.*?\bhref=(?P<id>https.+)'
-
+    _VALID_URL = 
r'(?s)https?://(?:[\w-]+\.)?facebook\.com/(?:v[\d.]+/)?plugins/video\.php\?(?:.*?&)?href=(?P<id>(?:http|%2[fF]|/).+?)(?:$|&)'
     _TESTS = [{
         'url': 
'https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fgov.sg%2Fvideos%2F10154383743583686%2F&show_text=0&width=560',
         'md5': '5954e92cdfe51fe5782ae9bda7058a07',
@@ -704,6 +703,5 @@ class FacebookPluginsVideoIE(InfoExtract
     }]
 
     def _real_extract(self, url):
-        return self.url_result(
-            compat_urllib_parse_unquote(self._match_id(url)),
-            FacebookIE.ie_key())
+        return self.url_result(urljoin(
+            'https://www.facebook.com', 
compat_urllib_parse_unquote(self._match_id(url))))

Reply via email to