mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 13:42:52 +08:00
piapro: suppoert uploader name without honorific
This commit is contained in:
parent
2a9492b5bf
commit
cedd5da48c
@ -47,6 +47,8 @@ class PiaproIE(InfoExtractor):
|
||||
uploader_without_honorific = re.match('.+(?=さん)', uploader).group(0)
|
||||
except IndexError:
|
||||
uploader_without_honorific = None
|
||||
except AttributeError:
|
||||
uploader_without_honorific = uploader
|
||||
|
||||
return {
|
||||
'artist': uploader_without_honorific or uploader,
|
||||
|
Loading…
Reference in New Issue
Block a user