mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-04 11:43:47 +00:00 
			
		
		
		
	[twitch:stream] Fix channel_id in different case (Closes #6263)
This commit is contained in:
		
							parent
							
								
									4211e1941b
								
							
						
					
					
						commit
						1793d71db6
					
				@ -346,6 +346,8 @@ class TwitchStreamIE(TwitchBaseIE):
 | 
				
			|||||||
                'http://www.twitch.tv/%s/profile' % channel_id,
 | 
					                'http://www.twitch.tv/%s/profile' % channel_id,
 | 
				
			||||||
                'TwitchProfile', channel_id)
 | 
					                'TwitchProfile', channel_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        channel_id = stream.get('channel', {}).get('name') or channel_id.lower()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        access_token = self._download_json(
 | 
					        access_token = self._download_json(
 | 
				
			||||||
            '%s/api/channels/%s/access_token' % (self._API_BASE, channel_id), channel_id,
 | 
					            '%s/api/channels/%s/access_token' % (self._API_BASE, channel_id), channel_id,
 | 
				
			||||||
            'Downloading channel access token')
 | 
					            'Downloading channel access token')
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user