fix bug in channel updates

This commit is contained in:
Niko Storni 2022-08-10 17:27:27 +02:00
parent c1b2117df5
commit 4f6748ae83

View file

@ -375,7 +375,7 @@ func (s *Sync) ensureChannelOwnership() error {
channelUsesOldMetadata := false channelUsesOldMetadata := false
if channelToUse != nil { if channelToUse != nil {
channelUsesOldMetadata = channelToUse.Value.GetThumbnail() == nil || (len(channelToUse.Value.Languages) == 0 && s.DbChannelData.Language == "") channelUsesOldMetadata = channelToUse.Value.GetThumbnail() == nil || (len(channelToUse.Value.GetLanguages()) == 0 && s.DbChannelData.Language != "")
if !channelUsesOldMetadata { if !channelUsesOldMetadata {
return nil return nil
} }