This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement audio only watch pages * Add quality selector labels for audio formats * Fix video posters * Add buttons in thumbnails for shortcuts * Make thumbnails clickable again
- Loading branch information
Showing
12 changed files
with
170 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,30 @@ | |
case "video": | ||
VideoRendererData video = (VideoRendererData)renderer.Data; | ||
<div class="renderer-gridvideorenderer"> | ||
<a href="/[email protected]" class="grid-thumbnail"> | ||
<div href="/[email protected]" class="grid-thumbnail"> | ||
<img loading="lazy" src="@video.Thumbnails.LastOrDefault()?.Url" alt="@video.Title"> | ||
<div class="compact-thumbnail__duration__container"> | ||
<span class="compact-thumbnail__duration">@video.Duration.ToDurationString()</span> | ||
</div> | ||
</a> | ||
<a href="/[email protected]" class="thumbnail__video-href"></a> | ||
<div class="thumbnail__buttons__container"> | ||
<a href="/[email protected]" class="thumbnail__button" title="@Model.Localization.GetString("watch.save")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#folder-plus"/> | ||
</svg> | ||
</a> | ||
<a href="/[email protected]&audioOnly=true" class="thumbnail__button" title="@Model.Localization.GetString("video.listen")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#headphones"/> | ||
</svg> | ||
</a> | ||
<a href="/download/@video.VideoId" class="thumbnail__button" title="@Model.Localization.GetString("video.download")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#download"/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="info"> | ||
<a href="/[email protected]" class="ml-2 title" title="@video.Title"> | ||
@video.Title | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,30 @@ | |
case "video": | ||
VideoRendererData video = (VideoRendererData)renderer.Data; | ||
<div class="renderer-gridvideorenderer"> | ||
<a href="/[email protected]" class="grid-thumbnail"> | ||
<div href="/[email protected]" class="grid-thumbnail"> | ||
<img loading="lazy" src="@video.Thumbnails.LastOrDefault()?.Url" alt="@video.Title"> | ||
<div class="compact-thumbnail__duration__container"> | ||
<span class="compact-thumbnail__duration">@video.Duration.ToDurationString()</span> | ||
</div> | ||
</a> | ||
<a href="/[email protected]" class="thumbnail__video-href"></a> | ||
<div class="thumbnail__buttons__container"> | ||
<a href="/[email protected]" class="thumbnail__button" title="@Model.Localization.GetString("watch.save")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#folder-plus"/> | ||
</svg> | ||
</a> | ||
<a href="/[email protected]&audioOnly=true" class="thumbnail__button" title="@Model.Localization.GetString("video.listen")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#headphones"/> | ||
</svg> | ||
</a> | ||
<a href="/download/@video.VideoId" class="thumbnail__button" title="@Model.Localization.GetString("video.download")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#download"/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="info"> | ||
<a href="/[email protected]" class="ml-2 title" title="@video.Title"> | ||
@video.Title | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,30 @@ | |
case "video": | ||
VideoRendererData video = (VideoRendererData)Model.Renderer.Data; | ||
<div class="renderer-videorenderer"> | ||
<a class="thumbnail" href="/[email protected]"> | ||
<div class="thumbnail" href="/[email protected]"> | ||
<img loading="lazy" src="@video.Thumbnails.LastOrDefault()?.Url" alt="@video.Title"> | ||
<div class="thumbnail__duration__container"> | ||
<span class="thumbnail__duration">@video.Duration.ToDurationString()</span> | ||
</div> | ||
</a> | ||
<a href="/[email protected]" class="thumbnail__video-href"></a> | ||
<div class="thumbnail__buttons__container"> | ||
<a href="/[email protected]" class="thumbnail__button" title="@Model.Localization.GetString("watch.save")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#folder-plus"/> | ||
</svg> | ||
</a> | ||
<a href="/[email protected]&audioOnly=true" class="thumbnail__button" title="@Model.Localization.GetString("video.listen")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#headphones"/> | ||
</svg> | ||
</a> | ||
<a href="/download/@video.VideoId" class="thumbnail__button" title="@Model.Localization.GetString("video.download")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#download"/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="info"> | ||
<a href="/[email protected]" class="ml-2 title" title="@video.Title"> | ||
@video.Title | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,25 @@ | |
</div> | ||
</a> | ||
</div> | ||
@if (Model.Player.AudioOnly) { | ||
<div class="interaction-buttons"> | ||
<a class="interaction-button" href="/watch@(Context.Request.QueryString.ToString().Replace("&audioOnly=true", ""))" title="@Model.Localization.GetString("video.watch")"> | ||
<svg class="icon" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#film"/> | ||
</svg> | ||
</a> | ||
</div> | ||
} | ||
else | ||
{ | ||
<div class="interaction-buttons"> | ||
<a class="interaction-button" href="/watch@(Context.Request.QueryString)&audioOnly=true" title="@Model.Localization.GetString("video.listen")"> | ||
<svg class="icon" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#headphones"/> | ||
</svg> | ||
</a> | ||
</div> | ||
} | ||
<div class="interaction-buttons"> | ||
<a class="interaction-button" href="https://youtube.com/watch@(Context.Request.QueryString)" title="@Model.Localization.GetString("watch.youtube")"> | ||
<svg class="icon" width="20" height="20" fill="currentColor"> | ||
|
@@ -264,12 +283,30 @@ | |
case "video": | ||
VideoRendererData video = (VideoRendererData)renderer.Data; | ||
<div class="renderer-compactvideorenderer"> | ||
<a class="compact-thumbnail" href="/[email protected]"> | ||
<div class="compact-thumbnail"> | ||
<img loading="lazy" src="@video.Thumbnails.LastOrDefault()?.Url" alt="@video.Title"> | ||
<div class="compact-thumbnail__duration__container"> | ||
<span class="compact-thumbnail__duration">@video.Duration.ToDurationString()</span> | ||
</div> | ||
</a> | ||
<a href="/[email protected]" class="thumbnail__video-href"></a> | ||
<div class="thumbnail__buttons__container"> | ||
<a href="/[email protected]" class="thumbnail__button" title="@Model.Localization.GetString("watch.save")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#folder-plus"/> | ||
</svg> | ||
</a> | ||
<a href="/[email protected]&audioOnly=true" class="thumbnail__button" title="@Model.Localization.GetString("video.listen")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#headphones"/> | ||
</svg> | ||
</a> | ||
<a href="/download/@video.VideoId" class="thumbnail__button" title="@Model.Localization.GetString("video.download")"> | ||
<svg class="bi" width="20" height="20" fill="currentColor"> | ||
<use xlink:href="/svg/bootstrap-icons.svg#download"/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="info"> | ||
<a class="ml-2 title" href="/[email protected]" title="@video.Title"> | ||
@video.Title | ||
|
Oops, something went wrong.