Skip to content

Commit 3fb8f7b

Browse files
author
xfzv
committed
Add x (ex-Twitter)
1 parent 48d6828 commit 3fb8f7b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

script-opts/SmartCopyPaste.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ prefer_filename_over_title=local
3838
copy_time_method=all
3939

4040
#--The time attributes which will be added when copying protocols of specific websites from this list. Additional attributes can be added following the same format.
41-
specific_time_attributes=[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ]
41+
specific_time_attributes=[ ["twitch", "?t=", "s"], ["twitter", "?t=", ""], ["x", "?t=", ""], ["youtube", "&t=", "s"] ]
4242

43-
#--The text that will be copied before the seek time when copying a protocol video from mpv
43+
#--The text that will be copied before the seek time when copying a protocol video from mpv
4444
protocols_time_attribute=&t=
4545

4646
#--The text that will be copied before the seek time when copying a local video from mpv

script-opts/SmartCopyPaste_II.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ log_paste_idle_behavior=force-noresume
4747
log_paste_running_behavior=timestamp>playlist
4848

4949
#--The time attributes which will be added when copying protocols of specific websites from this list. Additional attributes can be added following the same format.
50-
specific_time_attributes=[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ]
50+
specific_time_attributes=[ ["twitch", "?t=", "s"], ["twitter", "?t=", ""], ["x", "?t=", ""], ["youtube", "&t=", "s"] ]
5151

52-
#--The text that will be copied before the seek time when copying a protocol video from mpv
52+
#--The text that will be copied before the seek time when copying a protocol video from mpv
5353
protocols_time_attribute=&t=
5454

5555
#--The text that will be copied before the seek time when copying a local video from mpv

scripts/SmartCopyPaste.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ local o = {
2323
prefer_filename_over_title = 'local', --Prefers to copy filename over filetitle. Select between 'local', 'protocols', 'all', and 'none'. 'local' prefer filenames for videos that are not protocols. 'protocols' will prefer filenames for protocols only. 'all' will prefer filename over filetitle for both protocols and not protocols videos. 'none' will always use filetitle instead of filename
2424
copy_time_method = 'all', --Option to copy time with video, 'none' for disabled, 'all' to copy time for all videos, 'protocols' for copying time only for protocols, 'specifics' to copy time only for websites defined below, 'local' to copy time for videos that are not protocols
2525
specific_time_attributes=[[
26-
[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ]
26+
[ ["twitch", "?t=", "s"], ["twitter", "?t=", ""], ["x", "?t=", ""], ["youtube", "&t=", "s"] ]
2727
]], --The time attributes which will be added when copying protocols of specific websites from this list. Additional attributes can be added following the same format.
2828
protocols_time_attribute = '&t=', --The text that will be copied before the seek time when copying a protocol video from mpv
2929
local_time_attribute = '&time=', --The text that will be copied before the seek time when copying a local video from mpv

scripts/SmartCopyPaste_II.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local o = {
2626
log_paste_idle_behavior = 'force-noresume', --Behavior of paste when nothing valid is copied, and no video is running. select between 'force', 'force-noresume'
2727
log_paste_running_behavior = 'timestamp>playlist', --Behavior of paste when nothing valid is copied, and a video is running. select between 'timestamp>playlist', 'timestamp>force', 'timestamp', 'playlist', 'force', 'force-noresume'
2828
specific_time_attributes=[[
29-
[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ]
29+
[ ["twitch", "?t=", "s"], ["twitter", "?t=", ""], ["x", "?t=", ""], ["youtube", "&t=", "s"] ]
3030
]], --The time attributes which will be added when copying protocols of specific websites from this list. Additional attributes can be added following the same format.
3131
protocols_time_attribute = '&t=', --The default text that will be copied before the seek time when copying a protocol video from mpv, specific_time_attributes takes priority
3232
local_time_attribute = '&time=', --The text that will be copied before the seek time when copying a local video from mpv

0 commit comments

Comments
 (0)