diff --git a/frontends/ycdl_flask/static/js/api.js b/frontends/ycdl_flask/static/js/api.js index a2949f3..8c12a03 100644 --- a/frontends/ycdl_flask/static/js/api.js +++ b/frontends/ycdl_flask/static/js/api.js @@ -3,5 +3,14 @@ var api = {}; /**************************************************************************************************/ api.channels = {}; +api.channels.refresh_channel = +function refresh_channel(channel_id, force, callback) +{ + var url = `/channel/${channel_id}/refresh`; + data = new FormData(); + data.append("force", force) + return common.post(url, data, callback); +} + /**************************************************************************************************/ api.videos = {}; diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index 82e4279..0057c60 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -155,8 +155,8 @@ https://stackoverflow.com/a/35153397 {{header.make_header()}}