Skip to content

Commit 8cfcff3

Browse files
committed
feat: split has_4k_content into distinct direct play and 4K controls
Add has_direct_play variable to independently toggle the direct play optimization section from the 4K streaming section.
1 parent b586b33 commit 8cfcff3

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ Set to `true` to show the section, `false` to hide it.
116116
| `guide_url` | `""` | Public URL for the guide |
117117
| `has_plex_pass` | `true` | Plex Pass features section |
118118
| `has_plex_home` | `false` | Plex Home notes |
119-
| `has_4k_content` | `true` | 4K direct play optimization guide |
119+
| `has_direct_play` | `true` | Direct play optimization guide |
120+
| `has_4k_content` | `true` | 4K streaming section |
120121
| `has_migration` | `false` | Watch history migration section |
121122
| `show_costs` | `false` | Server cost information |
122123
| `server_cost` | `""` | Monthly cost string |

‎plex-guide/docs/index.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ If your smart TV struggles with Plex, consider a dedicated streaming device. The
437437

438438
---
439439

440-
{% if has_4k_content | default(true) %}
440+
{% if has_direct_play | default(true) %}
441441
## Direct Play (Best Quality)
442442

443443
**Direct play** means your device plays the video file exactly as-is, with no conversion by the server. This always gives you the best experience:
@@ -489,6 +489,9 @@ Common reasons for transcoding:
489489
- Device doesn't support the audio codec — try switching to a compatible audio track
490490
- Image-based subtitles (PGS/ASS) being burned in — try SRT subtitles instead
491491

492+
{% endif %}
493+
{% if has_4k_content | default(true) %}
494+
492495
---
493496

494497
## 4K Streaming

‎plex-guide/mkdocs.sample.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ extra:
6969
guide_url: "" # Public URL for this guide
7070
has_plex_pass: true # Whether your server has a Plex Pass
7171
has_plex_home: false # Whether you use Plex Home for some users
72-
has_4k_content: true # Whether to show 4K/direct play optimization section
72+
has_direct_play: true # Whether to show direct play optimization section
73+
has_4k_content: true # Whether to show 4K streaming section
7374
has_migration: false # Whether you offer watch history migration
7475
show_costs: false # Whether to show server cost information
7576
server_cost: "" # Monthly server cost (e.g., "~$50/month")

‎plex-guide/setup.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ fi
126126

127127
prompt_bool has_plex_pass "Does your server have a Plex Pass?" "true"
128128
prompt_bool has_plex_home "Do you use Plex Home for some users?" "false"
129-
prompt_bool has_4k_content "Show 4K/direct play optimization section?" "true"
129+
prompt_bool has_direct_play "Show direct play optimization section?" "true"
130+
prompt_bool has_4k_content "Show 4K streaming section?" "true"
130131
prompt_bool has_migration "Do you offer watch history migration?" "false"
131132

132133
prompt_bool show_costs "Show server cost information?" "false"
@@ -157,6 +158,7 @@ update_config "has_guide_url" "$has_guide_url" true
157158
update_config "guide_url" "$guide_url"
158159
update_config "has_plex_pass" "$has_plex_pass" true
159160
update_config "has_plex_home" "$has_plex_home" true
161+
update_config "has_direct_play" "$has_direct_play" true
160162
update_config "has_4k_content" "$has_4k_content" true
161163
update_config "has_migration" "$has_migration" true
162164
update_config "show_costs" "$show_costs" true

0 commit comments

Comments
 (0)