You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,13 @@ To use this script, follow these steps:
23
23
24
24
6. You can modify the script to play a specific langage.
25
25
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
+
26
27
`if sub.type == "sub" and not sub.forced and (sub.title == nil or not sub.title:find("SDH")) then`
28
+
27
29
Replace it with:
30
+
28
31
`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
+
29
33
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.
30
34
31
35
Please make sure to understand the consequences of this modification and adjust it according to your specific needs.
0 commit comments