diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-06-02 22:15:15 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-06-02 22:15:15 -0500 |
| commit | 3c9fb5ab718fc2b296d66fcba5c0dc6682c67cd9 (patch) | |
| tree | d059f308c6fa6dd4bb66e7d4d86cb3a1e8036e9d | |
| parent | ce714a0854fc76f2379d4623393cbc6811b05fe4 (diff) | |
| download | invidious-3c9fb5ab718fc2b296d66fcba5c0dc6682c67cd9.tar.gz invidious-3c9fb5ab718fc2b296d66fcba5c0dc6682c67cd9.tar.bz2 invidious-3c9fb5ab718fc2b296d66fcba5c0dc6682c67cd9.zip | |
Use properties instead of info
| -rw-r--r-- | src/views/watch.ecr | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/views/watch.ecr b/src/views/watch.ecr index 082acdf6..4545b697 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -117,7 +117,7 @@ player.src(currentSources); <div class="h-box"> <h1> - <%= video.info["title"] %> + <%= video.title %> <% if listen %> <a href="/watch?<%= env.params.query %>"> <i class="fa fa-video" aria-hidden="true"></i> @@ -155,28 +155,28 @@ player.src(currentSources); <div class="pure-u-1 pure-u-md-3-5"> <div class="h-box"> <p> - <a href="https://youtube.com/channel/<%= video.info["ucid"] %>"> - <h3><%= video.info["author"] %></h3> + <a href="/channel/<%= video.ucid %>"> + <h3><%= video.author %></h3> </a> </p> <% if authorized %> - <% if subscriptions.includes? video.info["ucid"] %> + <% if subscriptions.includes? video.ucid %> <p> - <a href="/subscription_ajax?action_remove_subscriptions=1&c=<%= video.info["ucid"] %>"> - <b>Unsubscribe from <%= video.info["author"] %></b> + <a href="/subscription_ajax?action_remove_subscriptions=1&c=<%= video.ucid %>"> + <b>Unsubscribe from <%= video.author %></b> </a> </p> <% else %> <p> - <a href="/subscription_ajax?action_create_subscription_to_channel=1&c=<%= video.info["ucid"] %>"> - <b>Subscribe to <%= video.info["author"] %></b> + <a href="/subscription_ajax?action_create_subscription_to_channel=1&c=<%= video.ucid %>"> + <b>Subscribe to <%= video.author %></b> </a> </p> <% end %> <% else %> <p> <a href="/login"> - <b>Login to subscribe to <%= video.info["author"] %></b> + <b>Login to subscribe to <%= video.author %></b> </a> </p> <% end %> |
