Add support for new SDK (0.37.*) and support for upgrading channels and claims to new metadata #28
2 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue