Forráskód Böngészése

Implement option to disable the file name decrapifiier (close #10050)

Felix Paul Kühne 11 éve
szülő
commit
22633d427d

+ 1 - 0
NEWS

@@ -22,6 +22,7 @@ Interface:
 * Improved privacy by requesting the passcode immediately after leaving the
   app and by obfuscating playback metadata if passcode lock is enabled
 * Added support to endlessly repeat the currently playing item (#9793)
+* Added option to disable file name display optimizations (#10050)
 
 Cloud interaction:
 * Added support for downloads from Google Drive (#8690)

+ 10 - 0
Resources/Settings.bundle/Root.inApp.plist

@@ -21,6 +21,16 @@
 			<string>PSToggleSwitchSpecifier</string>
 		</dict>
 		<dict>
+			<key>DefaultValue</key>
+			<true/>
+			<key>Key</key>
+			<string>MLDecrapifyTitles</string>
+			<key>Title</key>
+			<string>SETTINGS_DECRAPIFY</string>
+			<key>Type</key>
+			<string>PSToggleSwitchSpecifier</string>
+		</dict>
+		<dict>
 			<key>Type</key>
 			<string>PSGroupSpecifier</string>
 			<key>Title</key>

+ 16 - 0
Resources/Settings.bundle/Root.plist

@@ -8,6 +8,22 @@
 			<key>Type</key>
 			<string>PSGroupSpecifier</string>
 			<key>Title</key>
+			<string>SETTINGS_GENERIC_TITLE</string>
+		</dict>
+		<dict>
+			<key>DefaultValue</key>
+			<true/>
+			<key>Key</key>
+			<string>MLDecrapifyTitles</string>
+			<key>Title</key>
+			<string>SETTINGS_DECRAPIFY</string>
+			<key>Type</key>
+			<string>PSToggleSwitchSpecifier</string>
+		</dict>
+		<dict>
+			<key>Type</key>
+			<string>PSGroupSpecifier</string>
+			<key>Title</key>
 			<string>SETTINGS_VIDEO_TITLE</string>
 		</dict>
 		<dict>

+ 1 - 0
Sources/VLCConstants.h

@@ -34,6 +34,7 @@
 #define kVLCSettingSubtitlesFontColorDefaultValue @"16777215"
 #define kVLCSettingDeinterlace @"deinterlace"
 #define kVLCSettingDeinterlaceDefaultValue @(0)
+#define kVLCSettingsDecrapifyTitles = @"MLDecrapifyTitles";
 
 #define kVLCShowRemainingTime @"show-remaining-time"
 #define kVLCRecentURLs @"recent-urls"