mirror of
				https://github.com/TeamPiped/piped-proxy.git
				synced 2024-08-14 23:50:45 +00:00 
			
		
		
		
	Rename mislabelled audio segments to .aac
This commit is contained in:
		
							parent
							
								
									35de41cd87
								
							
						
					
					
						commit
						d370eeecfb
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -291,7 +291,7 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
 | 
			
		|||
        QString::new(collected)
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    let mut url = Url::parse(&format!("https://{}{}", host, req.path()))?;
 | 
			
		||||
    let mut url = Url::parse(&format!("https://{}{}", host, req.path().replace("seg.aac", "seg.ts")))?;
 | 
			
		||||
    url.set_query(Some(qs.to_string().as_str()));
 | 
			
		||||
 | 
			
		||||
    let method = {
 | 
			
		||||
| 
						 | 
				
			
			@ -435,6 +435,8 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
 | 
			
		|||
                                    utils::localize_url(url, host.as_str()).as_str(),
 | 
			
		||||
                                );
 | 
			
		||||
                            }
 | 
			
		||||
                        } else if line.contains("/itag/233") || line.contains("/itag/234") {
 | 
			
		||||
                            return utils::localize_url(line.replace("seg.ts", "seg.aac").as_str(), host.as_str());
 | 
			
		||||
                        }
 | 
			
		||||
                        utils::localize_url(line, host.as_str())
 | 
			
		||||
                    })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue