File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ mpv_hr_seek=yes
142
142
# Defaults to no
143
143
thumbnail_network =no
144
144
145
+ # Same as autogenerate_max_duration but for remote videos
146
+ # Defaults to 1200 (20 minutes)
147
+ remote_autogenerate_max_duration =1200
145
148
# Override thumbnail count, min/max delta, as above
146
149
remote_thumbnail_count =60
147
150
remote_min_delta =15
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ local thumbnailer_options = {
112
112
113
113
-- Allow thumbnailing network paths (naive check for "://")
114
114
thumbnail_network = false ,
115
+ -- Same as autogenerate_max_duration but for remote videos
116
+ remote_autogenerate_max_duration = 1200 , -- 20 min
115
117
-- Override thumbnail count, min/max delta
116
118
remote_thumbnail_count = 60 ,
117
119
remote_min_delta = 15 ,
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ function Thumbnailer:on_video_change(params)
78
78
self :update_state ()
79
79
self :check_storyboard_async (function ()
80
80
local duration = mp .get_property_native (" duration" )
81
+ local max_duration
82
+ if self .state .is_remote then
83
+ max_duration = thumbnailer_options .autogenerate_max_duration_remote
84
+ else
85
+ max_duration = thumbnailer_options .autogenerate_max_duration
86
+ end
81
87
local max_duration = thumbnailer_options .autogenerate_max_duration
82
88
83
89
if duration ~= nil and self .state .available and thumbnailer_options .autogenerate then
You can’t perform that action at this time.
0 commit comments