mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 14:03:02 +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)
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user