Skip to content

Commit

Permalink
[CI] auto update yt_dlp to upstream commit 46f4c80bc363ee8116c33d37f6…
Browse files Browse the repository at this point in the history
…5202e6c3470954
  • Loading branch information
github-actions[bot] committed Sep 7, 2024
1 parent 551508c commit afe5abe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions lib/yt_dlp/extractor/samplefocus.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SampleFocusIE(InfoExtractor):

def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
webpage = self._download_webpage(url, display_id, impersonate=True)

sample_id = self._search_regex(
r'<input[^>]+id=(["\'])sample_id\1[^>]+value=(?:["\'])(?P<id>\d+)',
Expand Down Expand Up @@ -82,7 +82,15 @@ def extract_count(klass):
return {
'id': sample_id,
'title': title,
'url': mp3_url,
'formats': [{
'url': mp3_url,
'ext': 'mp3',
'vcodec': 'none',
'acodec': 'mp3',
'http_headers': {
'Referer': url,
},
}],
'display_id': display_id,
'thumbnail': thumbnail,
'uploader': uploader,
Expand Down
2 changes: 1 addition & 1 deletion lib/yt_dlp_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0fba08485b6445b72b5b63ae23ca2a73fa5d967f
46f4c80bc363ee8116c33d37f65202e6c3470954

0 comments on commit afe5abe

Please sign in to comment.