mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 06:10:32 +05:30
13 lines
258 B
Swift
13 lines
258 B
Swift
|
import AVFoundation
|
||
|
import Defaults
|
||
|
import Foundation
|
||
|
|
||
|
struct Channel: Codable, Defaults.Serializable {
|
||
|
var id: String
|
||
|
var name: String
|
||
|
|
||
|
static func from(video: Video) -> Channel {
|
||
|
Channel(id: video.channelID, name: video.author)
|
||
|
}
|
||
|
}
|