feat: implemented correct merging of artists
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			This commit is contained in:
		@@ -410,7 +410,7 @@ class YoutubeMusic(SuperYouTube):
 | 
			
		||||
        return results
 | 
			
		||||
 | 
			
		||||
    def fetch_artist(self, source: Source, stop_at_level: int = 1) -> Artist:
 | 
			
		||||
        artist = Artist()
 | 
			
		||||
        artist = Artist(source_list=[source])
 | 
			
		||||
 | 
			
		||||
        # construct the request
 | 
			
		||||
        url = urlparse(source.url)
 | 
			
		||||
@@ -431,6 +431,7 @@ class YoutubeMusic(SuperYouTube):
 | 
			
		||||
            dump_to_file(f"{browse_id}.json", r.text, is_json=True, exit_after_dump=False)
 | 
			
		||||
 | 
			
		||||
        # artist details
 | 
			
		||||
        data: dict = r.json()
 | 
			
		||||
        header = data.get("header", {})
 | 
			
		||||
        musicDetailHeaderRenderer = header.get("musicDetailHeaderRenderer", {})
 | 
			
		||||
        
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ __stage__ = os.getenv("STAGE", "prod")
 | 
			
		||||
DEBUG = (__stage__ == "dev") and True
 | 
			
		||||
DEBUG_LOGGING = DEBUG and False
 | 
			
		||||
DEBUG_TRACE = DEBUG and True
 | 
			
		||||
DEBUG_OBJECT_TRACE = DEBUG and False
 | 
			
		||||
DEBUG_OBJECT_TRACE = DEBUG and True
 | 
			
		||||
DEBUG_OBJECT_TRACE_CALLSTACK = DEBUG_OBJECT_TRACE and False
 | 
			
		||||
DEBUG_YOUTUBE_INITIALIZING = DEBUG and False
 | 
			
		||||
DEBUG_PAGES = DEBUG and False
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user