mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 05:36:56 +01:00
[Piapro] Extract description with break lines
Authored by: Lesmiscore Closes #3334
This commit is contained in:
parent
316f2650f8
commit
b52e788eb2
@ -27,6 +27,18 @@ class PiaproIE(InfoExtractor):
|
|||||||
'title': '裏表ラバーズ',
|
'title': '裏表ラバーズ',
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
'note': 'There are break lines in description, mandating (?s) flag',
|
||||||
|
'url': 'https://piapro.jp/t/9cSd',
|
||||||
|
'md5': '952bb6d1e8de95050206408a87790676',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '9cSd',
|
||||||
|
'ext': 'mp3',
|
||||||
|
'title': '青に溶けた風船 / 初音ミク',
|
||||||
|
'description': 'md5:d395a9bd151447631a5a1460bc7f9132',
|
||||||
|
'uploader': 'シアン・キノ',
|
||||||
|
'uploader_id': 'cyankino',
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
|
|
||||||
_login_status = False
|
_login_status = False
|
||||||
@ -81,7 +93,7 @@ def _real_extract(self, url):
|
|||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': self._html_search_regex(r'<h1\s+class="cd_works-title">(.+?)</h1>', webpage, 'title', fatal=False),
|
'title': self._html_search_regex(r'<h1\s+class="cd_works-title">(.+?)</h1>', webpage, 'title', fatal=False),
|
||||||
'description': self._html_search_regex(r'<p\s+class="cd_dtl_cap">(.+?)</p>\s*<div', webpage, 'description', fatal=False),
|
'description': self._html_search_regex(r'(?s)<p\s+class="cd_dtl_cap">(.+?)</p>\s*<div', webpage, 'description', fatal=False),
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'uploader_id': uploader_id,
|
'uploader_id': uploader_id,
|
||||||
'timestamp': unified_timestamp(create_date, False),
|
'timestamp': unified_timestamp(create_date, False),
|
||||||
|
Loading…
Reference in New Issue
Block a user