mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-18 18:38:28 +00:00
Removed blankspaces
This commit is contained in:
parent
296b10386f
commit
688b76d405
@ -461,8 +461,6 @@ def _real_extract(self, url):
|
|||||||
track_url = f'https://bandcamp.com/download?id={audio_track_id}'
|
track_url = f'https://bandcamp.com/download?id={audio_track_id}'
|
||||||
audio_page = self._download_webpage(
|
audio_page = self._download_webpage(
|
||||||
track_url, show_id, 'Downloading audio download page')
|
track_url, show_id, 'Downloading audio download page')
|
||||||
|
|
||||||
|
|
||||||
audio_blob = self._extract_data_attr(audio_page, show_id, 'blob', fatal=False)
|
audio_blob = self._extract_data_attr(audio_page, show_id, 'blob', fatal=False)
|
||||||
if audio_blob:
|
if audio_blob:
|
||||||
# The formats are now in the 'downloads' list within the audio_blob
|
# The formats are now in the 'downloads' list within the audio_blob
|
||||||
@ -475,8 +473,6 @@ def _real_extract(self, url):
|
|||||||
'ext': f.get('encoding_name'),
|
'ext': f.get('encoding_name'),
|
||||||
'vcodec': 'none',
|
'vcodec': 'none',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
if not formats and show.get('audio_stream'):
|
if not formats and show.get('audio_stream'):
|
||||||
for format_id, format_url in show['audio_stream'].items():
|
for format_id, format_url in show['audio_stream'].items():
|
||||||
if not url_or_none(format_url):
|
if not url_or_none(format_url):
|
||||||
@ -493,7 +489,6 @@ def _real_extract(self, url):
|
|||||||
'ext': ext,
|
'ext': ext,
|
||||||
'vcodec': 'none',
|
'vcodec': 'none',
|
||||||
})
|
})
|
||||||
|
|
||||||
if not formats:
|
if not formats:
|
||||||
raise ExtractorError('Could not find any audio formats for this episode.')
|
raise ExtractorError('Could not find any audio formats for this episode.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user