diff options
author | Jesús <heckyel@hyperbola.info> | 2022-04-10 07:57:14 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-04-10 07:57:14 +0800 |
commit | c8046abd97bae36fa50320c32843cf6141752f93 (patch) | |
tree | 1dd684a1936a08e7d5229dfb99f2d6d7fb604559 /yt_dlp/extractor/piapro.py | |
parent | 40748dd6d0bb053a1c90bcfe874d3cee4b306744 (diff) | |
parent | ca5300c7edadad46ede0249ad9fa8feaa4ccddd4 (diff) | |
download | hypervideo-pre-c8046abd97bae36fa50320c32843cf6141752f93.tar.lz hypervideo-pre-c8046abd97bae36fa50320c32843cf6141752f93.tar.xz hypervideo-pre-c8046abd97bae36fa50320c32843cf6141752f93.zip |
updated from upstream | 10/04/2022 at 07:57
Diffstat (limited to 'yt_dlp/extractor/piapro.py')
-rw-r--r-- | yt_dlp/extractor/piapro.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/yt_dlp/extractor/piapro.py b/yt_dlp/extractor/piapro.py index c4eb4913f..ae160623b 100644 --- a/yt_dlp/extractor/piapro.py +++ b/yt_dlp/extractor/piapro.py @@ -27,6 +27,18 @@ class PiaproIE(InfoExtractor): 'title': '裏表ラバーズ', '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 @@ -81,7 +93,7 @@ class PiaproIE(InfoExtractor): return { 'id': video_id, '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_id': uploader_id, 'timestamp': unified_timestamp(create_date, False), |