From a9e9f6a85c9d3b288a706d9802a946be9756ca4a Mon Sep 17 00:00:00 2001 From: xfzv <> Date: Mon, 16 Sep 2024 19:04:22 +0200 Subject: [PATCH 1/2] Replace `twitter` with `x` --- script-opts/SmartCopyPaste.conf | 2 +- script-opts/SmartCopyPaste_II.conf | 2 +- scripts/SmartCopyPaste.lua | 2 +- scripts/SmartCopyPaste_II.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script-opts/SmartCopyPaste.conf b/script-opts/SmartCopyPaste.conf index 1a1eb30..efaf140 100644 --- a/script-opts/SmartCopyPaste.conf +++ b/script-opts/SmartCopyPaste.conf @@ -38,7 +38,7 @@ prefer_filename_over_title=local copy_time_method=all #--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. -specific_time_attributes=[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ] +specific_time_attributes=[ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] #--The text that will be copied before the seek time when copying a protocol video from mpv protocols_time_attribute=&t= diff --git a/script-opts/SmartCopyPaste_II.conf b/script-opts/SmartCopyPaste_II.conf index 29303af..3e4d005 100644 --- a/script-opts/SmartCopyPaste_II.conf +++ b/script-opts/SmartCopyPaste_II.conf @@ -47,7 +47,7 @@ log_paste_idle_behavior=force-noresume log_paste_running_behavior=timestamp>playlist #--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. -specific_time_attributes=[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ] +specific_time_attributes=[ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] #--The text that will be copied before the seek time when copying a protocol video from mpv protocols_time_attribute=&t= diff --git a/scripts/SmartCopyPaste.lua b/scripts/SmartCopyPaste.lua index 41af740..8a696b0 100644 --- a/scripts/SmartCopyPaste.lua +++ b/scripts/SmartCopyPaste.lua @@ -23,7 +23,7 @@ local o = { 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 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 specific_time_attributes=[[ - [ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ] + [ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] ]], --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. protocols_time_attribute = '&t=', --The text that will be copied before the seek time when copying a protocol video from mpv local_time_attribute = '&time=', --The text that will be copied before the seek time when copying a local video from mpv diff --git a/scripts/SmartCopyPaste_II.lua b/scripts/SmartCopyPaste_II.lua index 16bbda0..52833fb 100644 --- a/scripts/SmartCopyPaste_II.lua +++ b/scripts/SmartCopyPaste_II.lua @@ -26,7 +26,7 @@ local o = { log_paste_idle_behavior = 'force-noresume', --Behavior of paste when nothing valid is copied, and no video is running. select between 'force', 'force-noresume' 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' specific_time_attributes=[[ - [ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ] + [ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] ]], --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. 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 local_time_attribute = '&time=', --The text that will be copied before the seek time when copying a local video from mpv From 8ac38ad9a79d2285975362396bf24e1b5c9e947c Mon Sep 17 00:00:00 2001 From: xfzv <> Date: Sun, 22 Sep 2024 13:52:52 +0200 Subject: [PATCH 2/2] fix alphabetical order ditto --- script-opts/SmartCopyPaste.conf | 2 +- script-opts/SmartCopyPaste_II.conf | 2 +- scripts/SmartCopyPaste.lua | 2 +- scripts/SmartCopyPaste_II.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script-opts/SmartCopyPaste.conf b/script-opts/SmartCopyPaste.conf index efaf140..1448399 100644 --- a/script-opts/SmartCopyPaste.conf +++ b/script-opts/SmartCopyPaste.conf @@ -38,7 +38,7 @@ prefer_filename_over_title=local copy_time_method=all #--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. -specific_time_attributes=[ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] +specific_time_attributes=[ ["twitch", "?t=", "s"], ["x", "?t=", ""], ["youtube", "&t=", "s"] ] #--The text that will be copied before the seek time when copying a protocol video from mpv protocols_time_attribute=&t= diff --git a/script-opts/SmartCopyPaste_II.conf b/script-opts/SmartCopyPaste_II.conf index 3e4d005..ea6ef2b 100644 --- a/script-opts/SmartCopyPaste_II.conf +++ b/script-opts/SmartCopyPaste_II.conf @@ -47,7 +47,7 @@ log_paste_idle_behavior=force-noresume log_paste_running_behavior=timestamp>playlist #--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. -specific_time_attributes=[ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] +specific_time_attributes=[ ["twitch", "?t=", "s"], ["x", "?t=", ""], ["youtube", "&t=", "s"] ] #--The text that will be copied before the seek time when copying a protocol video from mpv protocols_time_attribute=&t= diff --git a/scripts/SmartCopyPaste.lua b/scripts/SmartCopyPaste.lua index 8a696b0..fbea191 100644 --- a/scripts/SmartCopyPaste.lua +++ b/scripts/SmartCopyPaste.lua @@ -23,7 +23,7 @@ local o = { 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 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 specific_time_attributes=[[ - [ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] + [ ["twitch", "?t=", "s"], ["x", "?t=", ""], ["youtube", "&t=", "s"] ] ]], --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. protocols_time_attribute = '&t=', --The text that will be copied before the seek time when copying a protocol video from mpv local_time_attribute = '&time=', --The text that will be copied before the seek time when copying a local video from mpv diff --git a/scripts/SmartCopyPaste_II.lua b/scripts/SmartCopyPaste_II.lua index 52833fb..96088e1 100644 --- a/scripts/SmartCopyPaste_II.lua +++ b/scripts/SmartCopyPaste_II.lua @@ -26,7 +26,7 @@ local o = { log_paste_idle_behavior = 'force-noresume', --Behavior of paste when nothing valid is copied, and no video is running. select between 'force', 'force-noresume' 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' specific_time_attributes=[[ - [ ["twitch", "?t=", "s"], ["youtube", "&t=", "s"], ["x", "?t=", ""] ] + [ ["twitch", "?t=", "s"], ["x", "?t=", ""], ["youtube", "&t=", "s"] ] ]], --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. 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 local_time_attribute = '&time=', --The text that will be copied before the seek time when copying a local video from mpv