Skip to content

Commit

Permalink
Chore: rename to find_local_subtitles (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu authored Dec 15, 2023
1 parent 07e33e2 commit a14f27d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions MetaTubeHelper.bundle/Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import threading

from localmedia import find_subtitles
from localmedia import find_local_subtitles

# plex debugging
try:
Expand Down Expand Up @@ -35,7 +35,7 @@ def update(self, metadata, media, lang):
with self.helper_global_semaphore:

# Look for subtitles
if Prefs['find_subtitles']:
if Prefs['find_local_subtitles']:
for item in media.items:
for part in item.parts:
find_subtitles(part)
find_local_subtitles(part)
2 changes: 1 addition & 1 deletion MetaTubeHelper.bundle/Contents/Code/localmedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def unicodize(s):
return s


def find_subtitles(part):
def find_local_subtitles(part):
RE_METAFILES = re.compile(r'^[.~]')

lang_sub_map = {}
Expand Down
4 changes: 2 additions & 2 deletions MetaTubeHelper.bundle/Contents/DefaultPrefs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"id": "find_subtitles",
"label": "Find subtitles",
"id": "find_local_subtitles",
"label": "Find local subtitles",
"type": "bool",
"default": "true"
}
Expand Down

0 comments on commit a14f27d

Please sign in to comment.