added artist attribute
This commit is contained in:
		@@ -51,11 +51,19 @@ class Source(DatabaseObject, SongAttribute, ID3Metadata):
 | 
				
			|||||||
        self.url = url
 | 
					        self.url = url
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_id3_dict(self) -> dict:
 | 
					    def get_id3_dict(self) -> dict:
 | 
				
			||||||
 | 
					        if self.type_enum == source_types.SONG:
 | 
				
			||||||
            return {
 | 
					            return {
 | 
				
			||||||
                Mapping.FILE_WEBPAGE_URL: [self.url],
 | 
					                Mapping.FILE_WEBPAGE_URL: [self.url],
 | 
				
			||||||
                Mapping.SOURCE_WEBPAGE_URL: [self.homepage]
 | 
					                Mapping.SOURCE_WEBPAGE_URL: [self.homepage]
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					        if self.type_enum == source_types.ARTIST:
 | 
				
			||||||
 | 
					            return {
 | 
				
			||||||
 | 
					                Mapping.ARTIST_WEBPAGE_URL: [self.url]
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __str__(self):
 | 
					    def __str__(self):
 | 
				
			||||||
        return f"{self.src}: {self.url}"
 | 
					        return f"{self.src}: {self.url}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user