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
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
|
||||
import eol
|
||||
eol.check()
|
||||
|
||||
import cleanup
|
||||
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import sys
|
||||
|
||||
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.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.forks import auto_fork
|
||||
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
|
||||
|
||||
from core.utils import (
|
||||
char_replace, clean_dir, convert_to_ascii,
|
||||
extract_files, get_dirs, get_download_info,
|
||||
update_download_info_status,
|
||||
)
|
||||
|
||||
# Initialize the config
|
||||
core.initialize()
|
||||
|
@ -20,10 +31,10 @@ core.initialize()
|
|||
# label = core.TORRENT_CLASS.core.get_torrent_status('f33a9c4b15cbd9170722d700069af86746817ade', ['label']).get()['label']
|
||||
# print(label)
|
||||
|
||||
if transcoder.is_video_good(core.TEST_FILE, 0):
|
||||
print('FFPROBE Works')
|
||||
else:
|
||||
print('FFPROBE FAILED')
|
||||
#if transcoder.is_video_good(core.TEST_FILE, 0):
|
||||
# print('FFPROBE Works')
|
||||
#else:
|
||||
# print('FFPROBE FAILED')
|
||||
|
||||
test = core.CFG['SickBeard', 'NzbDrone']['tv'].isenabled()
|
||||
print(test)
|
||||
|
@ -32,16 +43,16 @@ print(section)
|
|||
print(len(section))
|
||||
#fork, fork_params = auto_fork('SickBeard', 'tv')
|
||||
|
||||
if server_responding('http://127.0.0.1:5050'):
|
||||
print('CouchPotato Running')
|
||||
if server_responding('http://127.0.0.1:7073'):
|
||||
print('SickBeard Running')
|
||||
if server_responding('http://127.0.0.1:8181'):
|
||||
print('HeadPhones Running')
|
||||
if server_responding('http://127.0.0.1:8085'):
|
||||
print('Gamez Running')
|
||||
if server_responding('http://127.0.0.1:8090'):
|
||||
print('Mylar Running')
|
||||
#if server_responding('http://127.0.0.1:5050'):
|
||||
# print('CouchPotato Running')
|
||||
#if server_responding('http://127.0.0.1:7073'):
|
||||
# print('SickBeard Running')
|
||||
#if server_responding('http://127.0.0.1:8181'):
|
||||
# print('HeadPhones Running')
|
||||
#if server_responding('http://127.0.0.1:8085'):
|
||||
# print('Gamez Running')
|
||||
#if server_responding('http://127.0.0.1:8090'):
|
||||
# print('Mylar Running')
|
||||
|
||||
#lan = 'pt'
|
||||
#lan = Language.fromalpha2(lan)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue