Use more robust default chapter_ranges
This commit is contained in:
@@ -151,14 +151,14 @@ font_height_to_letter_width_ratio=0.5
|
||||
#
|
||||
# Display skippable youtube video sponsor blocks from https://github.com/po5/mpv_sponsorblock
|
||||
# ```
|
||||
# chapter_ranges=sponsor start<0000ff:0.5>sponsor end
|
||||
# chapter_ranges=sponsor start<3535a5:0.5>sponsor end
|
||||
# ```
|
||||
#
|
||||
# Display anime openings and endings as ranges:
|
||||
# ```
|
||||
# chapter_ranges=op<ffc500:0.5>.*,ed|ending<ffc500:0.5>.*|{eof}
|
||||
# chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}
|
||||
# ```
|
||||
chapter_ranges=op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end
|
||||
chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}, sponsor start<3535a5:.5>sponsor end
|
||||
```
|
||||
|
||||
## Keybindings
|
||||
|
@@ -109,11 +109,11 @@ font_height_to_letter_width_ratio=0.5
|
||||
#
|
||||
# Display skippable youtube video sponsor blocks from https://github.com/po5/mpv_sponsorblock
|
||||
# ```
|
||||
# chapter_ranges=sponsor start<0000ff:0.5>sponsor end
|
||||
# chapter_ranges=sponsor start<3535a5:0.5>sponsor end
|
||||
# ```
|
||||
#
|
||||
# Display anime openings and endings as ranges:
|
||||
# ```
|
||||
# chapter_ranges=op<ffc500:0.5>.*,ed|ending<ffc500:0.5>.*|{eof}
|
||||
# chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}
|
||||
# ```
|
||||
chapter_ranges=op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end
|
||||
chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}, sponsor start<3535a5:.5>sponsor end
|
||||
|
8
uosc.lua
8
uosc.lua
@@ -127,14 +127,14 @@ font_height_to_letter_width_ratio=0.5
|
||||
#
|
||||
# Display skippable youtube video sponsor blocks from https://github.com/po5/mpv_sponsorblock
|
||||
# ```
|
||||
# chapter_ranges=sponsor start<0000ff:0.5>sponsor end
|
||||
# chapter_ranges=sponsor start<3535a5:0.5>sponsor end
|
||||
# ```
|
||||
#
|
||||
# Display anime openings and endings as ranges:
|
||||
# ```
|
||||
# chapter_ranges=op<ffc500:0.5>.*,ed|ending<ffc500:0.5>.*|{eof}
|
||||
# chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}
|
||||
# ```
|
||||
chapter_ranges=op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end
|
||||
chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}, sponsor start<3535a5:.5>sponsor end
|
||||
```
|
||||
|
||||
Available keybindings (place into `input.conf`):
|
||||
@@ -211,7 +211,7 @@ local options = {
|
||||
media_types = '3gp,avi,bmp,flac,flv,gif,h264,h265,jpeg,jpg,m4a,m4v,mid,midi,mkv,mov,mp3,mp4,mp4a,mp4v,mpeg,mpg,oga,ogg,ogm,ogv,opus,png,rmvb,svg,tif,tiff,wav,weba,webm,webp,wma,wmv',
|
||||
subtitle_types = 'aqt,gsub,jss,sub,ttxt,pjs,psb,rt,smi,slt,ssf,srt,ssa,ass,usf,idx,vt',
|
||||
font_height_to_letter_width_ratio = 0.5,
|
||||
chapter_ranges = 'op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end',
|
||||
chapter_ranges = '^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}, sponsor start<3535a5:.5>sponsor end',
|
||||
}
|
||||
opt.read_options(options, 'uosc')
|
||||
local config = {
|
||||
|
Reference in New Issue
Block a user