Skip to content

Commit

Permalink
Merge pull request #351 from EspadaV8/patch-2
Browse files Browse the repository at this point in the history
Correct regex escaping for renaming subtitle tags
  • Loading branch information
Josh5 authored Oct 7, 2023
2 parents 84203b7 + 3983460 commit b5e5f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/extract_srt_subtitles_to_files/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"on_worker_process": 2
},
"tags": "subtitle,ffmpeg",
"version": "0.0.9"
"version": "0.0.10"
}
2 changes: 1 addition & 1 deletion source/extract_srt_subtitles_to_files/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def custom_stream_mapping(self, stream_info: dict, stream_id: int):
subtitle_tag = "{}.{}".format(subtitle_tag, stream_info.get('index'))

# Ensure subtitle tag does not contain whitespace or slashes
subtitle_tag = re.sub('\s|/|\\', '-', subtitle_tag)
subtitle_tag = re.sub('\s|/|\\\\', '-', subtitle_tag)

self.sub_streams.append(
{
Expand Down

0 comments on commit b5e5f35

Please sign in to comment.