Make the fix work
This commit is contained in:
		
							parent
							
								
									47c2010f7f
								
							
						
					
					
						commit
						76c45a45ea
					
				| 
						 | 
				
			
			@ -283,9 +283,9 @@ async def main():
 | 
			
		|||
                    for i in ('hls_url', 'dash_url'):
 | 
			
		||||
                        if not ffmpeg_exists:
 | 
			
		||||
                            continue
 | 
			
		||||
                        url = reddit_video.get(i)
 | 
			
		||||
                        if not url:
 | 
			
		||||
                        if not reddit_video.get(i):
 | 
			
		||||
                            continue
 | 
			
		||||
                        url = reddit_video[i]
 | 
			
		||||
                        print(url)
 | 
			
		||||
                        proc = await asyncio.create_subprocess_exec('ffmpeg', '-nostdin', '-y', '-i', url, '-c', 'copy', '-f', 'mp4', filename)
 | 
			
		||||
                        await proc.communicate()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue