drop logic that was ported to internal-apis
This commit is contained in:
parent
3493a42216
commit
839ed118e1
1 changed files with 0 additions and 10 deletions
10
manager.go
10
manager.go
|
@ -214,9 +214,6 @@ func (s *SyncManager) Start() error {
|
|||
return errors.Err("Expected 1 channel, %d returned", len(channels))
|
||||
}
|
||||
lbryChannelName := channels[0].DesiredChannelName
|
||||
if !s.isWorthProcessing(channels[0]) {
|
||||
break
|
||||
}
|
||||
syncs = make([]Sync, 1)
|
||||
syncs[0] = Sync{
|
||||
YoutubeAPIKey: s.YoutubeAPIKey,
|
||||
|
@ -250,9 +247,6 @@ func (s *SyncManager) Start() error {
|
|||
return err
|
||||
}
|
||||
for _, c := range channels {
|
||||
if !s.isWorthProcessing(c) {
|
||||
continue
|
||||
}
|
||||
syncs = append(syncs, Sync{
|
||||
YoutubeAPIKey: s.YoutubeAPIKey,
|
||||
YoutubeChannelID: c.ChannelId,
|
||||
|
@ -312,10 +306,6 @@ func (s *SyncManager) Start() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (s *SyncManager) isWorthProcessing(channel apiYoutubeChannel) bool {
|
||||
return channel.TotalVideos > 0 && (channel.SyncServer.IsNull() || channel.SyncServer.String == s.HostName)
|
||||
}
|
||||
|
||||
func (s *SyncManager) checkUsedSpace() error {
|
||||
usedPctile, err := GetUsedSpace(s.BlobsDir)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue