mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-03 22:22:02 +00:00 
			
		
		
		
	Fix playlists parsing with Invidious
This commit is contained in:
		@@ -442,8 +442,8 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
 | 
			
		||||
    func extractChannelPlaylist(from json: JSON) -> ChannelPlaylist {
 | 
			
		||||
        let details = json.dictionaryValue
 | 
			
		||||
        return ChannelPlaylist(
 | 
			
		||||
            id: details["playlistId"]!.stringValue,
 | 
			
		||||
            title: details["title"]!.stringValue,
 | 
			
		||||
            id: details["playlistId"]?.string ?? details["mixId"]?.string ?? UUID().uuidString,
 | 
			
		||||
            title: details["title"]?.stringValue ?? "",
 | 
			
		||||
            thumbnailURL: details["playlistThumbnail"]?.url,
 | 
			
		||||
            channel: extractChannel(from: json),
 | 
			
		||||
            videos: details["videos"]?.arrayValue.compactMap(extractVideo) ?? []
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user