From b3aa29c677bfeb6e29c63e5e28b3c59579d75cb6 Mon Sep 17 00:00:00 2001
From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Date: Sun, 23 Mar 2025 16:05:01 -0700
Subject: [PATCH] Swap source and stream columns in steam info modal
---
data/interfaces/default/css/tautulli.css | 4 ++
data/interfaces/default/stream_data.html | 81 ++++++++++++++++--------
2 files changed, 60 insertions(+), 25 deletions(-)
diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css
index 2835488d..5cb5d6bf 100644
--- a/data/interfaces/default/css/tautulli.css
+++ b/data/interfaces/default/css/tautulli.css
@@ -4325,6 +4325,10 @@ a:hover .overlay-refresh-image:hover {
.stream-info tr:nth-child(even) td {
background-color: rgba(255,255,255,0.010);
}
+.stream-info td:nth-child(3),
+.stream-info th:nth-child(3) {
+ width: 25px;
+}
.number-input {
margin: 0 !important;
width: 55px !important;
diff --git a/data/interfaces/default/stream_data.html b/data/interfaces/default/stream_data.html
index 9e42189b..a40bc54a 100644
--- a/data/interfaces/default/stream_data.html
+++ b/data/interfaces/default/stream_data.html
@@ -68,14 +68,14 @@ DOCUMENTATION :: END
-
- |
-
- Stream Details
- |
+ |
Source Details
|
+ |
+
+ Stream Details
+ |
@@ -85,38 +85,46 @@ DOCUMENTATION :: END
Media
|
+ |
+ |
+ |
Bitrate |
- ${data['stream_bitrate']} ${'kbps' if data['stream_bitrate'] else ''} |
${data['bitrate']} ${'kbps' if data['bitrate'] else ''} |
+ |
+ ${data['stream_bitrate']} ${'kbps' if data['stream_bitrate'] else ''} |
% if data['media_type'] != 'track':
Resolution |
- ${data['stream_video_full_resolution']} |
${data['video_full_resolution']} |
+ |
+ ${data['stream_video_full_resolution']} |
% endif
Quality |
- ${data['quality_profile']} |
- |
+ |
+ ${data['quality_profile']} |
% if data['optimized_version'] == 1:
Optimized Version |
- - |
${data['optimized_version_profile']} (${data['optimized_version_title']}) |
+ |
+ - |
% endif
% if data['synced_version'] == 1:
Synced Version |
- - |
${data['synced_version_profile']} |
+ |
+ - |
% endif
@@ -127,6 +135,8 @@ DOCUMENTATION :: END
Container
|
+ |
+ |
${data['stream_container_decision']}
|
@@ -135,8 +145,9 @@ DOCUMENTATION :: END
Container |
- ${data['stream_container'].upper()} |
${data['container'].upper()} |
+ |
+ ${data['stream_container'].upper()} |
@@ -147,6 +158,8 @@ DOCUMENTATION :: END
Video
|
+ |
+ |
${data['stream_video_decision']}
|
@@ -155,38 +168,45 @@ DOCUMENTATION :: END
Codec |
- ${data['stream_video_codec'].upper()} ${'(HW)' if data['transcode_hw_encoding'] else ''} |
${data['video_codec'].upper()} ${'(HW)' if data['transcode_hw_decoding'] else ''} |
+ |
+ ${data['stream_video_codec'].upper()} ${'(HW)' if data['transcode_hw_encoding'] else ''} |
Bitrate |
- ${data['stream_video_bitrate']} ${'kbps' if data['stream_video_bitrate'] else ''} |
${data['video_bitrate']} ${'kbps' if data['video_bitrate'] else ''} |
+ |
+ ${data['stream_video_bitrate']} ${'kbps' if data['stream_video_bitrate'] else ''} |
Width |
- ${data['stream_video_width']} |
${data['video_width']} |
+ |
+ ${data['stream_video_width']} |
Height |
- ${data['stream_video_height']} |
${data['video_height']} |
+ |
+ ${data['stream_video_height']} |
Framerate |
- ${data['stream_video_framerate']} |
${data['video_framerate']} |
+ |
+ ${data['stream_video_framerate']} |
Dynamic Range |
- ${data['stream_video_dynamic_range']} |
${data['video_dynamic_range']} |
+ |
+ ${data['stream_video_dynamic_range']} |
Aspect Ratio |
- - |
${data['aspect_ratio']} |
+ |
+ - |
@@ -197,6 +217,8 @@ DOCUMENTATION :: END
Audio
|
+ |
+ |
${data['stream_audio_decision']}
|
@@ -205,23 +227,27 @@ DOCUMENTATION :: END
Codec |
- ${AUDIO_CODEC_OVERRIDES.get(data['stream_audio_codec'], data['stream_audio_codec'].upper())} |
${AUDIO_CODEC_OVERRIDES.get(data['audio_codec'], data['audio_codec'].upper())} |
+ |
+ ${AUDIO_CODEC_OVERRIDES.get(data['stream_audio_codec'], data['stream_audio_codec'].upper())} |
Bitrate |
- ${data['stream_audio_bitrate']} ${'kbps' if data['stream_audio_bitrate'] else ''} |
${data['audio_bitrate']} ${'kbps' if data['audio_bitrate'] else ''} |
+ |
+ ${data['stream_audio_bitrate']} ${'kbps' if data['stream_audio_bitrate'] else ''} |
Channels |
- ${data['stream_audio_channels']} |
${data['audio_channels']} |
+ |
+ ${data['stream_audio_channels']} |
Language |
- - |
${data['audio_language'] or 'Unknown'} |
+ |
+ - |
@@ -233,6 +259,8 @@ DOCUMENTATION :: END
Subtitles
|
+ |
+ |
${'direct play' if data['stream_subtitle_decision'] not in ('transcode', 'copy', 'burn') else data['stream_subtitle_decision']}
|
@@ -241,19 +269,22 @@ DOCUMENTATION :: END
Codec |
- ${data['stream_subtitle_codec'].upper() or '-'} |
${data['subtitle_codec'].upper()} |
+ |
+ ${data['stream_subtitle_codec'].upper() or '-'} |
Language |
- - |
${data['subtitle_language'] or 'Unknown'} |
+ |
+ - |
% if data['subtitle_forced']:
Forced |
- - |
${bool(data['subtitle_forced'])} |
+ |
+ - |
% endif