Download video to sync to local cache #113

Open
pseudoscalar wants to merge 7 commits from pseudoscalar/issue/112/v1 into local
3 changed files with 46 additions and 18 deletions
Showing only changes of commit ce901f6b01 - Show all commits

View file

@ -17,12 +17,13 @@ import (
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
)
type SyncContext struct {
DryRun bool
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
KeepCache bool
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
TempDir string
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
LbrynetAddr string
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
ChannelID string
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
PublishBid float64
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
DryRun bool
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
KeepCache bool
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
ReflectStreams bool
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
TempDir string
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
LbrynetAddr string
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
ChannelID string
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
PublishBid float64
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
YouTubeSourceConfig *YouTubeSourceConfig
}
@ -57,6 +58,7 @@ func AddCommand(rootCmd *cobra.Command) {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
}
cmd.Flags().BoolVar(&syncContext.DryRun, "dry-run", false, "Display information about the stream publishing, but do not publish the stream")
cmd.Flags().BoolVar(&syncContext.KeepCache, "keep-cache", false, "Don't delete local files after publishing.")
cmd.Flags().BoolVar(&syncContext.ReflectStreams, "reflect-streams", true, "Require published streams to be reflected.")
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
cmd.Flags().StringVar(&syncContext.TempDir, "temp-dir", getEnvDefault("TEMP_DIR", ""), "directory to use for temporary files")
cmd.Flags().Float64Var(&syncContext.PublishBid, "publish-bid", 0.01, "Bid amount for the stream claim")
cmd.Flags().StringVar(&syncContext.LbrynetAddr, "lbrynet-address", getEnvDefault("LBRYNET_ADDRESS", ""), "JSONRPC address of the local LBRYNet daemon")
@ -119,15 +121,19 @@ func localCmd(cmd *cobra.Command, args []string) {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
log.Debugf("Object to be published: %v", processedVideo)
} else {
done, err := publisher.Publish(*processedVideo)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
doneReflectingCh, err := publisher.Publish(*processedVideo, syncContext.ReflectStreams)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
if err != nil {
log.Errorf("Error publishing video: %v", err)
return
}
err = <-done
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
if err != nil {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
log.Errorf("Error while wating for stream to reflect: %v", err)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
if syncContext.ReflectStreams {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
err = <-doneReflectingCh
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
if err != nil {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
log.Errorf("Error while wating for stream to reflect: %v", err)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
}
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
} else {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
log.Debugln("Not waiting for stream to reflect.")
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
}
}
@ -227,13 +233,14 @@ func getAbbrevDescription(v SourceVideo) string {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
return v.SourceURL
}
maxLength := 2800
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
additionalDescription := "\n...\n" + v.SourceURL
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
maxLength := 2800 - len(additionalDescription)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
description := strings.TrimSpace(*v.Description)
additionalDescription := "\n" + v.SourceURL
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
if len(description) > maxLength {
description = description[:maxLength]
}
return description + "\n..." + additionalDescription
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
return description + additionalDescription
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
}
type VideoSource interface {
@ -242,5 +249,5 @@ type VideoSource interface {
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
}
type VideoPublisher interface {
Publish(video PublishableVideo) (chan error, error)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
Publish(video PublishableVideo, reflectStream bool) (chan error, error)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
}

lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)
lyoshenka commented 2021-10-14 21:42:24 +02:00 (Migrated from github.com)
Review

i recommend os.ReadFile() to read the file in one go

i recommend os.ReadFile() to read the file in one go
lyoshenka commented 2021-11-05 21:32:31 +01:00 (Migrated from github.com)
Review

id call this something other than done to make it clear its a channel that lets you know when the video is done reflecting

id call this something other than `done` to make it clear its a channel that lets you know when the video is done reflecting
lyoshenka commented 2021-11-05 21:37:50 +01:00 (Migrated from github.com)
Review

minor nit, but doesn't this potentially make the description longer than the max length?

minor nit, but doesn't this potentially make the description longer than the max length?
pseudoscalar commented 2021-11-08 16:44:35 +01:00 (Migrated from github.com)
Review

This was mostly ripped from getAbbrevDescription in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.

This was mostly ripped from `getAbbrevDescription` in sources/youtubeVideo.go. I didn't know exactly where the value of 2800 came from, so I just assumed the logic was correct. If it is supposed to be a limit on the total description length, I'll fix this.
lyoshenka commented 2021-11-11 23:12:04 +01:00 (Migrated from github.com)
Review

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

i think that's an estimate of how long the description can get before we hit the max claim size limit. id still fix it so the math is right though :-)

View file

@ -48,7 +48,7 @@ func NewLocalSDKPublisher(sdkAddr, channelID string, publishBid float64) (*Local
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
return &publisher, nil
}
func (p *LocalSDKPublisher) Publish(video PublishableVideo) (chan error, error) {
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
func (p *LocalSDKPublisher) Publish(video PublishableVideo, reflectStream bool) (chan error, error) {
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
streamCreateOptions := jsonrpc.StreamCreateOptions {
ClaimCreateOptions: jsonrpc.ClaimCreateOptions {
Title: &video.Title,
@ -67,6 +67,10 @@ func (p *LocalSDKPublisher) Publish(video PublishableVideo) (chan error, error)
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
return nil, err
}
if !reflectStream {
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
return nil, nil
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
}
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
done := make(chan error, 1)
go func() {
for {
@ -88,8 +92,9 @@ func (p *LocalSDKPublisher) Publish(video PublishableVideo) (chan error, error)
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
break
}
if !fileStatus.UploadingToReflector {
log.Warn("Stream is not being uploaded to a reflector. Check your lbrynet settings if this is a mistake.")
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
break
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
log.Error("Stream is not being uploaded to a reflector. Check your lbrynet settings if this is a mistake.")
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
done <- errors.New("Stream is not being reflected (check lbrynet settings).")
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
return
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
}
log.Infof("Stream reflector progress: %d%%", fileStatus.ReflectorProgress)
time.Sleep(5 * time.Second)

lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work
lyoshenka commented 2021-11-05 21:35:00 +01:00 (Migrated from github.com)
Review

if this is an error (or an unexpected thing), it should prolly send an error to done, right?

if this is an error (or an unexpected thing), it should prolly send an error to `done`, right?
pseudoscalar commented 2021-11-08 17:17:49 +01:00 (Migrated from github.com)
Review

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.

The thinking was that this may be intentional since it is driven by lbrynet settings. I could turn this into an error if that case is unlikely. I could also add a command line flag to indicate that streams won't be reflected.
lyoshenka commented 2021-11-11 23:11:09 +01:00 (Migrated from github.com)
Review

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

yea id either make it an option or just assume that all streams will be reflected. option is better but more work

View file

@ -5,6 +5,7 @@
- LBRY SDK (what do we actually need this for?)
- youtube-dl
- enough space to cache stuff
- YouTube data API key
## Process
@ -15,6 +16,21 @@
- or easier, just error if no channel
- enough lbc in wallet?
### Getting a YouTube API key
To access the YouTube data API, you will first need some kind of google account.
The API has two methods of authentication, OAuth2 and API keys. This application uses API keys.
These API keys are basically like passwords, and so once obtained, they should not be shared.
The instructions for obtaining an API key are copied below from [here](https://developers.google.com/youtube/registering_an_application):
1. Open the [Credentials page](https://console.developers.google.com/apis/credentials) in the API Console.
2. Create an API key in the Console by clicking **Create credentials > API key**. You can restrict the key before using it in production by clicking **Restrict key** and selecting one of the **Restrictions**.
To keep your API keys secure, follow the [best practices for securely using API keys](https://cloud.google.com/docs/authentication/api-keys).
### Options to figure out what's already synced
- simplest: assume nothing is synced yet
@ -50,4 +66,4 @@
### Debugging
- dry-running the whole thing
- dry-running the whole thing