Youtube: Fix channel links app-wide

This commit is contained in:
pluja 2020-08-23 21:33:23 +02:00
parent f515c9aab7
commit 149643721e
3 changed files with 11 additions and 6 deletions

View File

@ -232,6 +232,7 @@ def ytsearch():
'id':v['id'],
'videoThumb': v['thumbnails'][-1],
'channelUrl':v['url_suffix'],
'channelId': v['channelId'],
'views':v['views'],
'timeStamp':v['publishedText']
})

View File

@ -8,10 +8,14 @@
</div>
<div style="margin: .1em" class="center aligned header"><a href="">{{channel.name}}</a></div>
<div class="center aligned description">
<a>
<i class="users icon"></i>
{{channel.subCount}}
</a>
<div class="statistic">
<div class="value">
<i class="users icon"></i>{{channel.subCount}}
</div>
<div class="label">
Followers
</div>
</div>
</div>
</div>
<div class="center aligned extra content">

View File

@ -16,7 +16,7 @@
<div class="ui one column centered grid">
{% if channels %}
<div class="ui middle aligned divided list">
<div class="ui middle aligned list">
<h3 class="ui dividing header">Users</h3>
{% for res in channels %}
@ -40,7 +40,7 @@
</div>
<img class="ui avatar image" src="{{ res.thumbnail }}">
<div class="content">
{{res.username}}
<a href="{{ url_for('channel', id=res.channelId)}}">{{res.username}}</a>
<div class="ui label">
<i class="user icon"></i> {{res.subCount}}
</div>