]> git.pld-linux.org Git - packages/youtube-dl.git/commitdiff
Add extract-uploader.patch; rel 5 master auto/th/youtube-dl-20211217-5
authormis <mistoo@gmail.com>
Wed, 22 Feb 2023 14:10:40 +0000 (15:10 +0100)
committermis <mistoo@gmail.com>
Wed, 22 Feb 2023 14:10:40 +0000 (15:10 +0100)
extract-uploader.patch [new file with mode: 0644]
youtube-dl.spec

diff --git a/extract-uploader.patch b/extract-uploader.patch
new file mode 100644 (file)
index 0000000..4937bd8
--- /dev/null
@@ -0,0 +1,12 @@
+# based on https://github.com/ytdl-org/youtube-dl/issues/31530#issuecomment-1433470254
+--- youtube_dl/extractor/youtube.py~   2021-12-16 19:47:24.000000000 +0100
++++ youtube_dl/extractor/youtube.py    2023-02-22 14:55:31.317701423 +0100
+@@ -1791,7 +1791,7 @@
+                 microformat.get('uploadDate')
+                 or search_meta('uploadDate')),
+             'uploader': video_details['author'],
+-            'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
++            'uploader_id': self._search_regex(r'/(?:channel/|user/|@)([^/?&#]+)', owner_profile_url, 'uploader id', default=None) if owner_profile_url else None,
+             'uploader_url': owner_profile_url,
+             'channel_id': channel_id,
+             'channel_url': 'https://www.youtube.com/channel/' + channel_id if channel_id else None,
index cd56672407798ad7a6e4a350551047a927c96f69..f05ab0db3da0f70157c903f2e9db50c5c5284aac 100644 (file)
@@ -15,7 +15,7 @@ Summary:      Video extraction utility for YouTube
 Summary(pl.UTF-8):     Narzędzie do wydobywania filmów z YouTube
 Name:          youtube-dl
 Version:       %{ver}
-Release:       4
+Release:       5
 Epoch:         2
 License:       Public Domain
 Group:         Applications/System
@@ -27,6 +27,7 @@ Source1:      %{name}.conf
 # but the author removed his repository, so the url is 404
 # git log -p --reverse pr/10291~3..pr/10291
 Patch0:                10291.diff
+Patch1:                extract-uploader.patch
 URL:           http://youtube-dl.org/
 %if %{with python2}
 BuildRequires: python-modules >= 1:2.6
@@ -116,6 +117,7 @@ Dopełnianie parametrów w zsh dla polecenia youtube-dl.
 %setup -qc
 %{__mv} %{name} .tmp; %{__mv} .tmp/* .
 %patch0 -p1
+%patch1 -p0
 
 %build
 %if %{with python2}
This page took 0.054696 seconds and 4 git commands to generate.