From 692c7967706dacbaea3d5f79cea4f0246996d33d Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 20 Oct 2020 17:43:25 +0200 Subject: [PATCH] handle non existing iso639-1 better --- sources/youtubeVideo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/youtubeVideo.go b/sources/youtubeVideo.go index 3d58747..d92da12 100644 --- a/sources/youtubeVideo.go +++ b/sources/youtubeVideo.go @@ -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} }