Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusPending = "pending" // waiting for permission to sync StatusPendingEmail = "pendingemail" // permission granted but missing email StatusQueued = "queued" // in sync queue. will be synced soon StatusPendingUpgrade = "pendingupgrade" // in sync queue. will be synced soon StatusSyncing = "syncing" // syncing now StatusSynced = "synced" // done StatusWipeDb = "pendingdbwipe" // in sync queue. lbryum database will be pruned StatusFailed = "failed" StatusFinalized = "finalized" // no more changes allowed StatusAbandoned = "abandoned" // deleted on youtube or banned )
View Source
const ( VideoStatusPublished = "published" VideoStatusFailed = "failed" VideoStatusUpgradeFailed = "upgradefailed" VideoStatusUnpublished = "unpublished" VideoStatusTranferFailed = "transferfailed" )
View Source
const ( TransferStateNotTouched = iota TransferStatePending TransferStateComplete TransferStateManual )
View Source
const LatestMetadataVersion = 2
Variables ¶
View Source
var NeverRetryFailures = []string{
"Error extracting sts from embedded url response",
"Unable to extract signature tokens",
"the video is too big to sync, skipping for now",
"video is too long to process",
"video is too short to process",
"This video contains content from",
"no compatible format available for this video",
"Watch this video on YouTube.",
"have blocked it on copyright grounds",
"giving up after 0 fragment retries",
"Sign in to confirm your age",
}
View Source
var SyncStatuses = []string{StatusPending, StatusPendingEmail, StatusPendingUpgrade, StatusQueued, StatusSyncing, StatusSynced, StatusFailed, StatusFinalized, StatusAbandoned, StatusWipeDb}
Functions ¶
This section is empty.
Types ¶
type AwsConfigs ¶
func (*AwsConfigs) GetS3AWSConfig ¶
func (a *AwsConfigs) GetS3AWSConfig() *aws.Config
type SyncFlags ¶
type SyncFlags struct { TakeOverExistingChannel bool SkipSpaceCheck bool SyncUpdate bool SingleRun bool RemoveDBUnpublished bool UpgradeMetadata bool DisableTransfers bool QuickSync bool MaxTries int Refill int Limit int Status string SecondaryStatus string ChannelID string SyncFrom int64 SyncUntil int64 ConcurrentJobs int VideosLimit int MaxVideoSize int MaxVideoLength time.Duration }
func (*SyncFlags) IsSingleChannelSync ¶
func (*SyncFlags) VideosToSync ¶ added in v5.6.18
VideosToSync dynamically figures out how many videos should be synced for a given subs count if nothing was otherwise specified
type VideoStatus ¶
type YoutubeChannel ¶
type YoutubeChannel struct { ChannelId string `json:"channel_id"` TotalVideos uint `json:"total_videos"` TotalSubscribers uint `json:"total_subscribers"` DesiredChannelName string `json:"desired_channel_name"` Fee *Fee `json:"fee"` ChannelClaimID string `json:"channel_claim_id"` TransferState int `json:"transfer_state"` PublishAddress string `json:"publish_address"` PublicKey string `json:"public_key"` LengthLimit int `json:"length_limit"` SizeLimit int `json:"size_limit"` LastUploadedVideo string `json:"last_uploaded_video"` WipeDB bool `json:"wipe_db"` }
Click to show internal directories.
Click to hide internal directories.