mirror of
				https://github.com/TeamPiped/Piped-Backend.git
				synced 2024-08-14 23:51:41 +00:00 
			
		
		
		
	Fix for empty lbry streams. (#180)
This commit is contained in:
		
							parent
							
								
									c07cf5fd1f
								
							
						
					
					
						commit
						3748afdd72
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,7 @@ import me.kavin.piped.consts.Constants;
 | 
			
		|||
import okhttp3.MediaType;
 | 
			
		||||
import okhttp3.Request;
 | 
			
		||||
import okhttp3.RequestBody;
 | 
			
		||||
import org.apache.commons.lang3.StringUtils;
 | 
			
		||||
import org.json.JSONObject;
 | 
			
		||||
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
| 
						 | 
				
			
			@ -18,6 +19,10 @@ public class LbryHelper {
 | 
			
		|||
 | 
			
		||||
    public static String getLBRYStreamURL(String lbryId)
 | 
			
		||||
            throws IOException {
 | 
			
		||||
 | 
			
		||||
        if (StringUtils.isEmpty(lbryId))
 | 
			
		||||
            return null;
 | 
			
		||||
 | 
			
		||||
        var request = new Request.Builder()
 | 
			
		||||
                .url("https://api.lbry.tv/api/v1/proxy?m=get")
 | 
			
		||||
                .post(RequestBody.create(String.valueOf(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue