diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-18 10:15:11 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-18 13:38:09 +0100 |
commit | d9a2a03196275065c28f4a0b7d4d7bc9992d77a1 (patch) | |
tree | 14579db95cd07506bf3d8e5c0af3ef1630e8700c /server/types/models | |
parent | 2451916e45420fedf556913ce121f3964c4b57d6 (diff) | |
download | PeerTube-d9a2a03196275065c28f4a0b7d4d7bc9992d77a1.tar.gz PeerTube-d9a2a03196275065c28f4a0b7d4d7bc9992d77a1.tar.zst PeerTube-d9a2a03196275065c28f4a0b7d4d7bc9992d77a1.zip |
Don't guess remote tracker URL
Diffstat (limited to 'server/types/models')
-rw-r--r-- | server/types/models/server/tracker.ts | 7 | ||||
-rw-r--r-- | server/types/models/video/video.ts | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/server/types/models/server/tracker.ts b/server/types/models/server/tracker.ts new file mode 100644 index 000000000..5fe03f8c0 --- /dev/null +++ b/server/types/models/server/tracker.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | import { TrackerModel } from '../../../models/server/tracker' | ||
2 | |||
3 | export type MTracker = Omit<TrackerModel, 'Videos'> | ||
4 | |||
5 | // ############################################################################ | ||
6 | |||
7 | export type MTrackerUrl = Pick<MTracker, 'url'> | ||
diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index 92dcbaf59..692490230 100644 --- a/server/types/models/video/video.ts +++ b/server/types/models/video/video.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { PickWith, PickWithOpt } from '@shared/core-utils' | 1 | import { PickWith, PickWithOpt } from '@shared/core-utils' |
2 | import { VideoModel } from '../../../models/video/video' | 2 | import { VideoModel } from '../../../models/video/video' |
3 | import { MTrackerUrl } from '../server/tracker' | ||
3 | import { MUserVideoHistoryTime } from '../user/user-video-history' | 4 | import { MUserVideoHistoryTime } from '../user/user-video-history' |
4 | import { MScheduleVideoUpdate } from './schedule-video-update' | 5 | import { MScheduleVideoUpdate } from './schedule-video-update' |
5 | import { MTag } from './tag' | 6 | import { MTag } from './tag' |
@@ -216,4 +217,5 @@ export type MVideoFormattableDetails = | |||
216 | Use<'VideoChannel', MChannelFormattable> & | 217 | Use<'VideoChannel', MChannelFormattable> & |
217 | Use<'Tags', MTag[]> & | 218 | Use<'Tags', MTag[]> & |
218 | Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundanciesOpt[]> & | 219 | Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundanciesOpt[]> & |
219 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> | 220 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & |
221 | Use<'Trackers', MTrackerUrl[]> | ||