Don't accept YouTube Mix playlists
This commit is contained in:
		
							parent
							
								
									e4874d554e
								
							
						
					
					
						commit
						bcd2a1092b
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -54,10 +54,9 @@ public class YoutubePlaylistLinkHandlerFactory extends ListLinkHandlerFactory {
 | 
			
		|||
    @Override
 | 
			
		||||
    public boolean onAcceptUrl(final String url) {
 | 
			
		||||
        try {
 | 
			
		||||
            getId(url);
 | 
			
		||||
            return !getId(url).startsWith("RD"); // Don't accept auto-generated "Mix" playlists
 | 
			
		||||
        } catch (ParsingException e) {
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue