Commit when adding channel after navigating to its page.

This commit is contained in:
voussoir 2021-10-25 14:05:02 -07:00
parent b33a01065e
commit 257c54d19b
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -64,7 +64,7 @@ def _render_videos_listing(videos, channel, state, orderby):
@site.route('/channel/<channel_id>/<state>')
def get_channel(channel_id, state=None):
try:
channel = common.ycdldb.add_channel(channel_id)
channel = common.ycdldb.add_channel(channel_id, commit=True)
except ycdl.ytapi.ChannelNotFound:
flask.abort(404)