mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 09:58:14 +00:00
Peertube fixes
This commit is contained in:
@@ -89,8 +89,12 @@ extension Watch {
|
||||
}
|
||||
|
||||
var video: Video {
|
||||
if !Video.VideoID.isValid(videoID), let url = URL(string: videoID) {
|
||||
return .local(url)
|
||||
let url = URL(string: videoID)
|
||||
|
||||
if app == nil || !Video.VideoID.isValid(videoID) {
|
||||
if let url {
|
||||
return .local(url)
|
||||
}
|
||||
}
|
||||
|
||||
return Video(app: app, instanceURL: instanceURL, videoID: videoID)
|
||||
|
Reference in New Issue
Block a user