Skip to content

Commit dce4cf4

Browse files
authored
Update README.md
1 parent af9d77e commit dce4cf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ To use this script, follow these steps:
2323

2424
6. You can modify the script to play a specific langage.
2525
For example, if you want the script to play English subtitles but exclude the FORCED and SDH ones, you can make the following modification to line #4:
26+
2627
`if sub.type == "sub" and not sub.forced and (sub.title == nil or not sub.title:find("SDH")) then`
28+
2729
Replace it with:
30+
2831
`if sub.type == "sub" and sub.lang:find("en") and not sub.forced and (sub.title == nil or not sub.title:find("SDH")) then`
32+
2933
By adding the additional condition sub.lang:find("en"), you are checking if the subtitle language matches "en" (for English). This modification ensures that only English subtitles that are not FORCED and do not contain "SDH" in their title will be selected.
3034

3135
Please make sure to understand the consequences of this modification and adjust it according to your specific needs.

0 commit comments

Comments
 (0)