Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 868833 Details for
Bug 913113
Patch in /etc/portage/patches partially applied instead of fully applied
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
7890.diff (goes in /etc/portage/patches/net-misc/yt-dlp-2023.07.06/)
7890.diff (text/plain), 4.07 KB, created by
Cyp
on 2023-08-27 14:34:53 UTC
(
hide
)
Description:
7890.diff (goes in /etc/portage/patches/net-misc/yt-dlp-2023.07.06/)
Filename:
MIME Type:
Creator:
Cyp
Created:
2023-08-27 14:34:53 UTC
Size:
4.07 KB
patch
obsolete
>diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py >index 4fd17b5743c..c30a6b06a01 100644 >--- a/yt_dlp/extractor/facebook.py >+++ b/yt_dlp/extractor/facebook.py >@@ -74,6 +74,22 @@ class FacebookIE(InfoExtractor): > _VIDEO_PAGE_TAHOE_TEMPLATE = 'https://www.facebook.com/video/tahoe/async/%s/?chain=true&isvideo=true&payloadtype=primary' > > _TESTS = [{ >+ 'url': 'https://www.facebook.com/radiokicksfm/videos/3676516585958356/', >+ 'info_dict': { >+ 'id': '3676516585958356', >+ 'ext': 'mp4', >+ 'title': 'dr Adam Przygoda', >+ 'description': 'md5:34675bda53336b1d16400265c2bb9b3b', >+ 'uploader': 'RADIO KICKS FM', >+ 'upload_date': '20230818', >+ 'timestamp': 1692346159, >+ 'thumbnail': r're:^https?://.*', >+ 'uploader_id': '100063551323670', >+ 'duration': 3132.184, >+ 'view_count': int, >+ 'concurrent_view_count': 0, >+ }, >+ }, { > 'url': 'https://www.facebook.com/video.php?v=637842556329505&fref=nf', > 'md5': '6a40d33c0eccbb1af76cf0485a052659', > 'info_dict': { >@@ -401,9 +417,9 @@ def _extract_from_url(self, url, video_id): > > def extract_metadata(webpage): > post_data = [self._parse_json(j, video_id, fatal=False) for j in re.findall( >- r'handleWithCustomApplyEach\(\s*ScheduledApplyEach\s*,\s*(\{.+?\})\s*\);', webpage)] >+ r'data-sjs>({.*?ScheduledServerJS.*?})</script>', webpage)] > post = traverse_obj(post_data, ( >- ..., 'require', ..., ..., ..., '__bbox', 'result', 'data'), expected_type=dict) or [] >+ ..., 'require', ..., ..., ..., '__bbox', 'require', ..., ..., ..., '__bbox', 'result', 'data'), expected_type=dict) or [] > media = traverse_obj(post, (..., 'attachments', ..., lambda k, v: ( > k == 'media' and str(v['id']) == video_id and v['__typename'] == 'Video')), expected_type=dict) > title = get_first(media, ('title', 'text')) >@@ -493,14 +509,14 @@ def process_formats(info): > > def extract_relay_data(_filter): > return self._parse_json(self._search_regex( >- r'handleWithCustomApplyEach\([^,]+,\s*({.*?%s.*?})\);' % _filter, >+ r'data-sjs>({.*?%s.*?})</script>' % _filter, > webpage, 'replay data', default='{}'), video_id, fatal=False) or {} > > def extract_relay_prefetched_data(_filter): >- replay_data = extract_relay_data(_filter) >- for require in (replay_data.get('require') or []): >- if require[0] == 'RelayPrefetchedStreamCache': >- return try_get(require, lambda x: x[3][1]['__bbox']['result']['data'], dict) or {} >+ return traverse_obj(extract_relay_data(_filter), ( >+ 'require', (None, (..., ..., ..., '__bbox', 'require')), >+ lambda _, v: 'RelayPrefetchedStreamCache' in v, ..., ..., >+ '__bbox', 'result', 'data', {dict}), get_all=False) or {} > > if not video_data: > server_js_data = self._parse_json(self._search_regex([ >@@ -511,7 +527,7 @@ def extract_relay_prefetched_data(_filter): > > if not video_data: > data = extract_relay_prefetched_data( >- r'"(?:dash_manifest|playable_url(?:_quality_hd)?)"\s*:\s*"[^"]+"') >+ r'"(?:dash_manifest|playable_url(?:_quality_hd)?)') > if data: > entries = [] > >@@ -526,7 +542,8 @@ def parse_graphql_video(video): > formats = [] > q = qualities(['sd', 'hd']) > for key, format_id in (('playable_url', 'sd'), ('playable_url_quality_hd', 'hd'), >- ('playable_url_dash', '')): >+ ('playable_url_dash', ''), ('browser_native_hd_url', 'hd'), >+ ('browser_native_sd_url', 'sd')): > playable_url = video.get(key) > if not playable_url: > continue
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 913113
:
868832
| 868833