mirror of
				https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
				synced 2024-08-15 00:53:38 +00:00 
			
		
		
		
	Strip domain from caption URLs
This commit is contained in:
		
							parent
							
								
									04d56420d1
								
							
						
					
					
						commit
						062867a38d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -3852,7 +3852,7 @@ get "/api/v1/captions/:id" do |env|
 | 
				
			||||||
    caption = caption[0]
 | 
					    caption = caption[0]
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  url = "#{caption.baseUrl}&tlang=#{tlang}"
 | 
					  url = URI.parse("#{caption.baseUrl}&tlang=#{tlang}").full_path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Auto-generated captions often have cues that aren't aligned properly with the video,
 | 
					  # Auto-generated captions often have cues that aren't aligned properly with the video,
 | 
				
			||||||
  # as well as some other markup that makes it cumbersome, so we try to fix that here
 | 
					  # as well as some other markup that makes it cumbersome, so we try to fix that here
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue