mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
fix tests.
This commit is contained in:
parent
49c286ae0e
commit
d7aba6109b
1 changed files with 29 additions and 18 deletions
|
@ -1,18 +1,29 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
import eol
|
||||||
|
eol.check()
|
||||||
|
|
||||||
|
import cleanup
|
||||||
|
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import core
|
import core
|
||||||
from core import logger, main_db, transcoder
|
from core import logger, main_db
|
||||||
from core.auto_process import comics, games, movies, music, tv
|
from core.auto_process import comics, games, movies, music, tv
|
||||||
from core.auto_process.common import ProcessResult
|
from core.auto_process.common import ProcessResult
|
||||||
|
from core.plugins.downloaders.nzb.utils import get_nzoid
|
||||||
|
from core.plugins.plex import plex_update
|
||||||
from core.user_scripts import external_script
|
from core.user_scripts import external_script
|
||||||
from core.forks import auto_fork
|
from core.utils import (
|
||||||
from core.utils import char_replace, clean_dir, convert_to_ascii, extract_files, get_dirs, get_download_info, get_nzoid, plex_update, update_download_info_status, server_responding
|
char_replace, clean_dir, convert_to_ascii,
|
||||||
|
extract_files, get_dirs, get_download_info,
|
||||||
|
update_download_info_status,
|
||||||
|
)
|
||||||
|
|
||||||
# Initialize the config
|
# Initialize the config
|
||||||
core.initialize()
|
core.initialize()
|
||||||
|
@ -20,10 +31,10 @@ core.initialize()
|
||||||
# label = core.TORRENT_CLASS.core.get_torrent_status('f33a9c4b15cbd9170722d700069af86746817ade', ['label']).get()['label']
|
# label = core.TORRENT_CLASS.core.get_torrent_status('f33a9c4b15cbd9170722d700069af86746817ade', ['label']).get()['label']
|
||||||
# print(label)
|
# print(label)
|
||||||
|
|
||||||
if transcoder.is_video_good(core.TEST_FILE, 0):
|
#if transcoder.is_video_good(core.TEST_FILE, 0):
|
||||||
print('FFPROBE Works')
|
# print('FFPROBE Works')
|
||||||
else:
|
#else:
|
||||||
print('FFPROBE FAILED')
|
# print('FFPROBE FAILED')
|
||||||
|
|
||||||
test = core.CFG['SickBeard', 'NzbDrone']['tv'].isenabled()
|
test = core.CFG['SickBeard', 'NzbDrone']['tv'].isenabled()
|
||||||
print(test)
|
print(test)
|
||||||
|
@ -32,16 +43,16 @@ print(section)
|
||||||
print(len(section))
|
print(len(section))
|
||||||
#fork, fork_params = auto_fork('SickBeard', 'tv')
|
#fork, fork_params = auto_fork('SickBeard', 'tv')
|
||||||
|
|
||||||
if server_responding('http://127.0.0.1:5050'):
|
#if server_responding('http://127.0.0.1:5050'):
|
||||||
print('CouchPotato Running')
|
# print('CouchPotato Running')
|
||||||
if server_responding('http://127.0.0.1:7073'):
|
#if server_responding('http://127.0.0.1:7073'):
|
||||||
print('SickBeard Running')
|
# print('SickBeard Running')
|
||||||
if server_responding('http://127.0.0.1:8181'):
|
#if server_responding('http://127.0.0.1:8181'):
|
||||||
print('HeadPhones Running')
|
# print('HeadPhones Running')
|
||||||
if server_responding('http://127.0.0.1:8085'):
|
#if server_responding('http://127.0.0.1:8085'):
|
||||||
print('Gamez Running')
|
# print('Gamez Running')
|
||||||
if server_responding('http://127.0.0.1:8090'):
|
#if server_responding('http://127.0.0.1:8090'):
|
||||||
print('Mylar Running')
|
# print('Mylar Running')
|
||||||
|
|
||||||
#lan = 'pt'
|
#lan = 'pt'
|
||||||
#lan = Language.fromalpha2(lan)
|
#lan = Language.fromalpha2(lan)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue