Skip to content

Commit 70fb3e8

Browse files
fix(oauth): increase delay after creating channel section to ensure youtube api can update
1 parent 373414c commit 70fb3e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/oauth/channels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class OAuthChannels {
190190

191191
// For some reason the response is just the first channel section
192192
// C'mon, YouTube
193-
await new Promise(resolve => setTimeout(resolve, 1000)) // Wait a second for the new channel section to be available
193+
await new Promise(resolve => setTimeout(resolve, 3000)) // Wait a second for the new channel section to be available
194194
const channelSections = await this.oauth.getMyChannelSections()
195195
return channelSections.find(position == null ?
196196
section => section.position === channelSections.length - 1 : // Highest position

0 commit comments

Comments
 (0)