aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/search/search-video-playlists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/search/search-video-playlists.ts')
-rw-r--r--server/controllers/api/search/search-video-playlists.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/search/search-video-playlists.ts b/server/controllers/api/search/search-video-playlists.ts
index b28f11c79..61a11c74a 100644
--- a/server/controllers/api/search/search-video-playlists.ts
+++ b/server/controllers/api/search/search-video-playlists.ts
@@ -24,6 +24,7 @@ import {
24 videoPlaylistsListSearchValidator, 24 videoPlaylistsListSearchValidator,
25 videoPlaylistsSearchSortValidator 25 videoPlaylistsSearchSortValidator
26} from '../../../middlewares' 26} from '../../../middlewares'
27import { searchLocalUrl } from './shared'
27 28
28const searchPlaylistsRouter = express.Router() 29const searchPlaylistsRouter = express.Router()
29 30
@@ -109,7 +110,7 @@ async function searchVideoPlaylistsURI (search: string, res: express.Response) {
109 logger.info('Cannot search remote video playlist %s.', search, { err }) 110 logger.info('Cannot search remote video playlist %s.', search, { err })
110 } 111 }
111 } else { 112 } else {
112 videoPlaylist = await VideoPlaylistModel.loadByUrlWithAccountAndChannelSummary(sanitizeLocalUrl(search)) 113 videoPlaylist = await searchLocalUrl(sanitizeLocalUrl(search), url => VideoPlaylistModel.loadByUrlWithAccountAndChannelSummary(url))
113 } 114 }
114 115
115 return res.json({ 116 return res.json({