File tree Expand file tree Collapse file tree 6 files changed +21
-16
lines changed
components/external-player-settings Expand file tree Collapse file tree 6 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ export default defineComponent({
37
37
externalPlayerIgnoreWarnings : function ( ) {
38
38
return this . $store . getters . getExternalPlayerIgnoreWarnings
39
39
} ,
40
- externalPlayerIgnoreArgs : function ( ) {
41
- return this . $store . getters . getExternalPlayerIgnoreArgs
40
+ externalPlayerIgnoreDefaultArgs : function ( ) {
41
+ return this . $store . getters . getExternalPlayerIgnoreDefaultArgs
42
42
} ,
43
43
externalPlayerCustomArgs : function ( ) {
44
44
return this . $store . getters . getExternalPlayerCustomArgs
@@ -61,7 +61,7 @@ export default defineComponent({
61
61
'updateExternalPlayer' ,
62
62
'updateExternalPlayerExecutable' ,
63
63
'updateExternalPlayerIgnoreWarnings' ,
64
- 'updateExternalPlayerIgnoreArgs ' ,
64
+ 'updateExternalPlayerIgnoreDefaultArgs ' ,
65
65
'updateExternalPlayerCustomArgs'
66
66
] )
67
67
}
Original file line number Diff line number Diff line change 22
22
@change =" updateExternalPlayerIgnoreWarnings"
23
23
/>
24
24
<ft-toggle-switch
25
- :label =" $t('Settings.External Player Settings.Ignore Arguments')"
26
- :default-value =" externalPlayerIgnoreArgs "
25
+ :label =" $t('Settings.External Player Settings.Ignore Default Arguments')"
26
+ :default-value =" externalPlayerIgnoreDefaultArgs "
27
27
:disabled =" externalPlayer===''"
28
28
:compact =" true"
29
- :tooltip =" $t('Tooltips.External Player Settings.Ignore Arguments')"
30
- @change =" updateExternalPlayerIgnoreArgs "
29
+ :tooltip =" $t('Tooltips.External Player Settings.Ignore Default Arguments')"
30
+ @change =" updateExternalPlayerIgnoreDefaultArgs "
31
31
/>
32
32
</ft-flex-box >
33
33
<ft-flex-box
45
45
<ft-input
46
46
:placeholder =" $t('Settings.External Player Settings.Custom External Player Arguments')"
47
47
:show-action-button =" false"
48
- :disabled =" externalPlayerIgnoreArgs===true"
49
48
:show-label =" true"
50
49
:value =" externalPlayerCustomArgs"
51
50
:tooltip =" externalPlayerCustomArgsTooltip"
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ const state = {
190
190
externalPlayer : '' ,
191
191
externalPlayerExecutable : '' ,
192
192
externalPlayerIgnoreWarnings : false ,
193
- externalPlayerIgnoreArgs : false ,
193
+ externalPlayerIgnoreDefaultArgs : false ,
194
194
externalPlayerCustomArgs : '' ,
195
195
expandSideBar : false ,
196
196
forceLocalBackendForLegacy : false ,
Original file line number Diff line number Diff line change @@ -542,11 +542,15 @@ const actions = {
542
542
? rootState . settings . externalPlayerExecutable
543
543
: cmdArgs . defaultExecutable
544
544
const ignoreWarnings = rootState . settings . externalPlayerIgnoreWarnings
545
- const ignoreArgs = rootState . settings . externalPlayerIgnoreArgs
545
+ const ignoreDefaultArgs = rootState . settings . externalPlayerIgnoreDefaultArgs
546
546
const customArgs = rootState . settings . externalPlayerCustomArgs
547
547
548
- if ( ignoreArgs && payload . videoId != null ) {
549
- args . push ( `${ cmdArgs . videoUrl } https://www.youtube.com/watch?v=${ payload . videoId } ` )
548
+ if ( ignoreDefaultArgs ) {
549
+ if ( typeof customArgs === 'string' && customArgs !== '' ) {
550
+ const custom = customArgs . split ( ';' )
551
+ args . push ( ...custom )
552
+ }
553
+ if ( payload . videoId != null ) args . push ( `${ cmdArgs . videoUrl } https://www.youtube.com/watch?v=${ payload . videoId } ` )
550
554
} else {
551
555
// Append custom user-defined arguments,
552
556
// or use the default ones specified for the external player.
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ Settings:
310
310
External Player Settings : External Player Settings
311
311
External Player : External Player
312
312
Ignore Unsupported Action Warnings : Ignore Unsupported Action Warnings
313
- Ignore Arguments : Ignore Arguments
313
+ Ignore Default Arguments : Ignore Default Arguments
314
314
Custom External Player Executable : Custom External Player Executable
315
315
Custom External Player Arguments : Custom External Player Arguments
316
316
Players :
@@ -876,8 +876,9 @@ Tooltips:
876
876
be set here.
877
877
Ignore Warnings : Suppress warnings for when the current external player does not support
878
878
the current action (e.g. reversing playlists, etc.).
879
- Ignore Arguments : Do not send any additional arguments to the external player
879
+ Ignore Default Arguments : Do not send any default arguments to the external player
880
880
aside from the video URL (e.g. playback rate, playlist URL, etc.).
881
+ Custom arguments will still be passed on.
881
882
Custom External Player Arguments : Any custom command line arguments, separated by semicolons (';'),
882
883
you want to be passed to the external player.
883
884
DefaultCustomArgumentsTemplate : " (Default: '{defaultCustomArguments}')"
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ Settings:
301
301
External Player Settings : External Player Settings
302
302
External Player : External Player
303
303
Ignore Unsupported Action Warnings : Ignore Unsupported Action Warnings
304
- Ignore Arguments : Ignore Arguments
304
+ Ignore Default Arguments : Ignore Default Arguments
305
305
Custom External Player Executable : Custom External Player Executable
306
306
Custom External Player Arguments : Custom External Player Arguments
307
307
Players :
@@ -954,8 +954,9 @@ Tooltips:
954
954
custom path can be set here.
955
955
Ignore Warnings : Suppress warnings for when the current external player does not
956
956
support the current action (e.g. reversing playlists, etc.).
957
- Ignore Arguments : Do not send any additional arguments to the external player
957
+ Ignore Default Arguments : Do not send any default arguments to the external player
958
958
aside from the video URL (e.g. playback rate, playlist URL, etc.).
959
+ Custom arguments will still be passed on.
959
960
Custom External Player Arguments : Any custom command line arguments, separated
960
961
by semicolons (';'), you want to be passed to the external player.
961
962
DefaultCustomArgumentsTemplate : ' (Default: ‘{defaultCustomArguments}’)'
You can’t perform that action at this time.
0 commit comments