File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/routes/invidious_routes Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ captionsHandler.get("/:videoId", async (c) => {
64
64
invidiousAvailableCaptionsArr . push ( {
65
65
label : caption_track . name . text || "" ,
66
66
languageCode : caption_track . language_code ,
67
- url : `/api/v1/captions/${ videoId } ?label=${
67
+ url : `${ config . server . base_path } /api/v1/captions/${ videoId } ?label=${
68
68
encodeURIComponent ( caption_track . name . text || "" )
69
69
} `,
70
70
} ) ;
@@ -89,6 +89,7 @@ captionsHandler.get("/:videoId", async (c) => {
89
89
if ( filterSelected . length == 0 ) throw new HTTPException ( 404 ) ;
90
90
91
91
c . header ( "Content-Type" , "text/vtt; charset=UTF-8" ) ;
92
+ c . header ( "Access-Control-Allow-Origin" , "*" ) ;
92
93
return c . body (
93
94
await handleTranscripts ( innertubeClient , videoId , filterSelected [ 0 ] ) ,
94
95
) ;
You can’t perform that action at this time.
0 commit comments