Commit when adding channel after navigating to its page.
This commit is contained in:
parent
b33a01065e
commit
257c54d19b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ def _render_videos_listing(videos, channel, state, orderby):
|
||||||
@site.route('/channel/<channel_id>/<state>')
|
@site.route('/channel/<channel_id>/<state>')
|
||||||
def get_channel(channel_id, state=None):
|
def get_channel(channel_id, state=None):
|
||||||
try:
|
try:
|
||||||
channel = common.ycdldb.add_channel(channel_id)
|
channel = common.ycdldb.add_channel(channel_id, commit=True)
|
||||||
except ycdl.ytapi.ChannelNotFound:
|
except ycdl.ytapi.ChannelNotFound:
|
||||||
flask.abort(404)
|
flask.abort(404)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue