1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-02-15 14:39:52 +00:00

piapro: suppoert uploader name without honorific

This commit is contained in:
Dimitrios Semitsoglou-Tsiapos 2019-01-27 17:43:05 +01:00
parent 2a9492b5bf
commit cedd5da48c

View File

@ -47,6 +47,8 @@ class PiaproIE(InfoExtractor):
uploader_without_honorific = re.match('.+(?=さん)', uploader).group(0) uploader_without_honorific = re.match('.+(?=さん)', uploader).group(0)
except IndexError: except IndexError:
uploader_without_honorific = None uploader_without_honorific = None
except AttributeError:
uploader_without_honorific = uploader
return { return {
'artist': uploader_without_honorific or uploader, 'artist': uploader_without_honorific or uploader,