index.json in videos
This commit is contained in:
parent
5b464f957a
commit
fd43f85240
|
@ -4,4 +4,3 @@ js/main.js
|
||||||
js/main.tmp.js
|
js/main.tmp.js
|
||||||
js/main.min.js
|
js/main.min.js
|
||||||
deploy.sh
|
deploy.sh
|
||||||
index.json
|
|
||||||
|
|
|
@ -24,5 +24,5 @@ for (let dir of fs.readdirSync(VIDEO_DIR)) {
|
||||||
info.push(description);
|
info.push(description);
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync('index.json', JSON.stringify(info));
|
fs.writeFileSync(path.join(VIDEO_DIR, 'index.json'), JSON.stringify(info));
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ decodePlaylists =
|
||||||
fetchPlaylists : (Result Http.Error (List Playlist) -> msg) -> Cmd msg
|
fetchPlaylists : (Result Http.Error (List Playlist) -> msg) -> Cmd msg
|
||||||
fetchPlaylists resultToMsg =
|
fetchPlaylists resultToMsg =
|
||||||
Http.get
|
Http.get
|
||||||
{ url = "index.json"
|
{ url = "videos/index.json"
|
||||||
, expect = Http.expectJson resultToMsg decodePlaylists
|
, expect = Http.expectJson resultToMsg decodePlaylists
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue