[PR #4100] [CLOSED] Configuration - Improved readability & split file for standardization #9880

Closed
opened 2026-02-07 06:10:06 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4100
Author: @BaronGreenback
Created: 9/8/2020
Status: Closed

Base: masterHead: ServerConfiguration


📝 Commits (10+)

📊 Changes

2 files changed (+227 additions, -180 deletions)

View changed files

MediaBrowser.Model/Configuration/PathSubstitution.cs (+19 -0)
📝 MediaBrowser.Model/Configuration/ServerConfiguration.cs (+208 -180)

📄 Description

I've found that by having the initialization properties in the configuration file within the constructor, i'm constantly moving up and down the file - first to look for the property i want, then to find what it's initialised to.

This change does is nothing more than move the initial values onto the same line as the property.

The PathSubstitution class has been moved to its own file as per standards.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/4100 **Author:** [@BaronGreenback](https://github.com/BaronGreenback) **Created:** 9/8/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `ServerConfiguration` --- ### 📝 Commits (10+) - [`d4004bc`](https://github.com/jellyfin/jellyfin/commit/d4004bcaf585a146e433d23d7781a2fb55b33cb0) Merge pull request #62 from jellyfin/master - [`555c15d`](https://github.com/jellyfin/jellyfin/commit/555c15df82fc604dfc931ad791e4025c947f95b9) Create temp - [`6220965`](https://github.com/jellyfin/jellyfin/commit/6220965259ce4741d66ff249fe0c3c50da0983a3) Add files via upload - [`304d11a`](https://github.com/jellyfin/jellyfin/commit/304d11a3384f24047ab98338ec8b7926f42eecc9) Delete temp - [`df2cf31`](https://github.com/jellyfin/jellyfin/commit/df2cf318d392ef62702e29aebc3e496d1cfdf2a8) Delete IPHost.cs - [`07c88a4`](https://github.com/jellyfin/jellyfin/commit/07c88a40a5839b684e97a026adb8ebe1405a71a0) Delete IPObject.cs - [`ac8f939`](https://github.com/jellyfin/jellyfin/commit/ac8f9395f3d44810d97332a4675b7244b8e76c06) Delete IPNetAddress.cs - [`fe59cba`](https://github.com/jellyfin/jellyfin/commit/fe59cba70f1e31c6a6686f26a04623cbe1a7505d) Delete NetCollection.cs - [`d520807`](https://github.com/jellyfin/jellyfin/commit/d520807d641842502b653a1024c9d47364a03163) Create WhoIsJellyfinServer.cs - [`75c5537`](https://github.com/jellyfin/jellyfin/commit/75c553792986187ba80f2e21806bb71d443b521b) Merge pull request #63 from jellyfin/master ### 📊 Changes **2 files changed** (+227 additions, -180 deletions) <details> <summary>View changed files</summary> ➕ `MediaBrowser.Model/Configuration/PathSubstitution.cs` (+19 -0) 📝 `MediaBrowser.Model/Configuration/ServerConfiguration.cs` (+208 -180) </details> ### 📄 Description I've found that by having the initialization properties in the configuration file within the constructor, i'm constantly moving up and down the file - first to look for the property i want, then to find what it's initialised to. This change does is nothing more than move the initial values onto the same line as the property. The PathSubstitution class has been moved to its own file as per standards. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:10:06 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9880