mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2024-11-14 09:30:21 -08:00
55 lines
1.4 KiB
Python
55 lines
1.4 KiB
Python
# coding=utf-8
|
|
|
|
from __future__ import (
|
|
absolute_import,
|
|
division,
|
|
print_function,
|
|
unicode_literals,
|
|
)
|
|
|
|
import requests
|
|
|
|
from core.utils import shutil_custom
|
|
from core.utils.common import clean_dir, flatten, get_dirs, process_dir
|
|
from core.utils.download_info import get_download_info, update_download_info_status
|
|
from core.utils.encoding import char_replace, convert_to_ascii
|
|
from core.utils.files import (
|
|
backup_versioned_file,
|
|
extract_files,
|
|
is_archive_file,
|
|
is_media_file,
|
|
is_min_size,
|
|
list_media_files,
|
|
move_file,
|
|
)
|
|
from core.utils.identification import category_search, find_imdbid
|
|
from core.utils.links import copy_link, replace_links
|
|
from core.utils.naming import clean_file_name, is_sample, sanitize_name
|
|
from core.utils.network import find_download, server_responding, test_connection, wake_on_lan, wake_up
|
|
from core.utils.parsers import (
|
|
parse_args,
|
|
parse_deluge,
|
|
parse_other,
|
|
parse_qbittorrent,
|
|
parse_rtorrent,
|
|
parse_transmission,
|
|
parse_utorrent,
|
|
parse_vuze,
|
|
)
|
|
from core.utils.paths import (
|
|
clean_directory,
|
|
flatten_dir,
|
|
get_dir_size,
|
|
make_dir,
|
|
onerror,
|
|
rchmod,
|
|
remote_dir,
|
|
remove_dir,
|
|
remove_empty_folders,
|
|
remove_read_only,
|
|
)
|
|
from core.utils.processes import RunningProcess, restart
|
|
|
|
requests.packages.urllib3.disable_warnings()
|
|
shutil_custom.monkey_patch()
|