add single channelwide tag

fix bug
This commit is contained in:
Niko Storni 2019-06-10 21:37:13 +02:00
parent 79dd6d1458
commit 52cd483f47
2 changed files with 3 additions and 1 deletions

View file

@ -480,7 +480,7 @@ func (s *Sync) updateRemoteDB(claims []jsonrpc.Claim) (total, fixed, removed int
log.Debugf("%s: Mismatch in database: published but marked as unpublished", videoID) log.Debugf("%s: Mismatch in database: published but marked as unpublished", videoID)
} }
if !claimInDatabase { if !claimInDatabase {
log.Debugf("%s: Published but is not in database", videoID, pv.ClaimName, c.Name) log.Debugf("%s: Published but is not in database (%s - %s)", videoID, c.Name, c.ClaimID)
} }
if !claimInDatabase || metadataDiffers || claimIDDiffers || claimNameDiffers || claimMarkedUnpublished { if !claimInDatabase || metadataDiffers || claimIDDiffers || claimNameDiffers || claimMarkedUnpublished {
claimSize, err := c.GetStreamSizeByMagic() claimSize, err := c.GetStreamSizeByMagic()

View file

@ -146,6 +146,7 @@ const (
JustJuggling = "UCftqelpjmbFrUwr3VVzzVwA" JustJuggling = "UCftqelpjmbFrUwr3VVzzVwA"
JordanBPeterson = "UCL_f53ZEJxp8TtlOkHwMV9Q" JordanBPeterson = "UCL_f53ZEJxp8TtlOkHwMV9Q"
DavidPakman = "UCvixJtaXuNdMPUGdOPcY8Ag" DavidPakman = "UCvixJtaXuNdMPUGdOPcY8Ag"
TheLinuxGamer = "UCv1Kcz-CuGM6mxzL3B1_Eiw"
) )
var channelWideTags = map[string][]string{ var channelWideTags = map[string][]string{
@ -155,6 +156,7 @@ var channelWideTags = map[string][]string{
JustJuggling: {"juggling", "circus arts", "malabares"}, JustJuggling: {"juggling", "circus arts", "malabares"},
JordanBPeterson: {"postmodernism", "psychology", "news"}, JordanBPeterson: {"postmodernism", "psychology", "news"},
DavidPakman: {"news"}, DavidPakman: {"news"},
TheLinuxGamer: {"gaming", "technology", "linux"},
} }
var tagsToSkip = map[string]*struct{}{ var tagsToSkip = map[string]*struct{}{
"#hangoutsonair": nil, "#hangoutsonair": nil,