handle non existing iso639-1 better
This commit is contained in:
parent
de798ade36
commit
692c796770
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ func (v *YoutubeVideo) publish(daemon *jsonrpc.Client, params SyncParams) (*Sync
|
|||
}
|
||||
}
|
||||
info := whatlanggo.Detect(v.getAbbrevDescription())
|
||||
if info.IsReliable() {
|
||||
if info.IsReliable() && info.Lang.Iso6391() != "" {
|
||||
language := info.Lang.Iso6391()
|
||||
languages = []string{language}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue