index.json in videos

This commit is contained in:
2020-10-05 11:56:14 +02:00
parent 5b464f957a
commit fd43f85240
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -4,4 +4,3 @@ js/main.js
js/main.tmp.js
js/main.min.js
deploy.sh
index.json
+1 -1
View File
@@ -24,5 +24,5 @@ for (let dir of fs.readdirSync(VIDEO_DIR)) {
info.push(description);
}
fs.writeFileSync('index.json', JSON.stringify(info));
fs.writeFileSync(path.join(VIDEO_DIR, 'index.json'), JSON.stringify(info));
+1 -1
View File
@@ -55,7 +55,7 @@ decodePlaylists =
fetchPlaylists : (Result Http.Error (List Playlist) -> msg) -> Cmd msg
fetchPlaylists resultToMsg =
Http.get
{ url = "index.json"
{ url = "videos/index.json"
, expect = Http.expectJson resultToMsg decodePlaylists
}