mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Refactor utils.subtitles to plugins.subtitles
This commit is contained in:
parent
76b5c06a33
commit
b6db785c92
5 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,12 @@ from core.auto_process.common import (
|
||||||
completed_download_handling,
|
completed_download_handling,
|
||||||
)
|
)
|
||||||
from core.plugins.downloaders.nzb.utils import report_nzb
|
from core.plugins.downloaders.nzb.utils import report_nzb
|
||||||
|
from core.plugins.subtitles import import_subs
|
||||||
from core.scene_exceptions import process_all_exceptions
|
from core.scene_exceptions import process_all_exceptions
|
||||||
from core.utils import (
|
from core.utils import (
|
||||||
convert_to_ascii,
|
convert_to_ascii,
|
||||||
find_download,
|
find_download,
|
||||||
find_imdbid,
|
find_imdbid,
|
||||||
import_subs,
|
|
||||||
list_media_files,
|
list_media_files,
|
||||||
remote_dir,
|
remote_dir,
|
||||||
remove_dir,
|
remove_dir,
|
||||||
|
|
|
@ -17,11 +17,11 @@ from core.auto_process.common import (
|
||||||
)
|
)
|
||||||
from core.forks import auto_fork
|
from core.forks import auto_fork
|
||||||
from core.plugins.downloaders.nzb.utils import report_nzb
|
from core.plugins.downloaders.nzb.utils import report_nzb
|
||||||
|
from core.plugins.subtitles import import_subs
|
||||||
from core.scene_exceptions import process_all_exceptions
|
from core.scene_exceptions import process_all_exceptions
|
||||||
from core.utils import (
|
from core.utils import (
|
||||||
convert_to_ascii,
|
convert_to_ascii,
|
||||||
flatten,
|
flatten,
|
||||||
import_subs,
|
|
||||||
list_media_files,
|
list_media_files,
|
||||||
remote_dir,
|
remote_dir,
|
||||||
remove_dir,
|
remove_dir,
|
||||||
|
|
|
@ -5,7 +5,8 @@ from subprocess import Popen
|
||||||
|
|
||||||
import core
|
import core
|
||||||
from core import logger, transcoder
|
from core import logger, transcoder
|
||||||
from core.utils import import_subs, list_media_files, remove_dir
|
from core.plugins.subtitles import import_subs
|
||||||
|
from core.utils import list_media_files, remove_dir
|
||||||
|
|
||||||
|
|
||||||
def external_script(output_destination, torrent_name, torrent_label, settings):
|
def external_script(output_destination, torrent_name, torrent_label, settings):
|
||||||
|
|
|
@ -42,7 +42,6 @@ from core.utils.paths import (
|
||||||
remove_read_only,
|
remove_read_only,
|
||||||
)
|
)
|
||||||
from core.utils.processes import RunningProcess, restart
|
from core.utils.processes import RunningProcess, restart
|
||||||
from core.utils.subtitles import import_subs
|
|
||||||
|
|
||||||
requests.packages.urllib3.disable_warnings()
|
requests.packages.urllib3.disable_warnings()
|
||||||
shutil_custom.monkey_patch()
|
shutil_custom.monkey_patch()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue