mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-12 16:22:53 -07:00
43 lines
No EOL
1.2 KiB
Python
Executable file
43 lines
No EOL
1.2 KiB
Python
Executable file
#! /usr/bin/env python2
|
|
import os
|
|
import datetime
|
|
import re
|
|
import nzbtomedia
|
|
from nzbtomedia.nzbToMediaAutoFork import autoFork
|
|
from nzbtomedia import nzbToMediaDB
|
|
from nzbtomedia.transcoder import transcoder
|
|
from nzbtomedia.nzbToMediaUtil import get_downloadInfo, server_responding
|
|
|
|
# Initialize the config
|
|
nzbtomedia.initialize()
|
|
|
|
if transcoder.isVideoGood(nzbtomedia.TEST_FILE, 0):
|
|
print "FFPROBE Works"
|
|
else:
|
|
print "FFPROBE FAILED"
|
|
|
|
test = nzbtomedia.CFG['SickBeard','NzbDrone']['tv'].isenabled()
|
|
print test
|
|
section = nzbtomedia.CFG.findsection('tv').isenabled()
|
|
print section
|
|
print len(section)
|
|
fork, fork_params = autoFork('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"
|
|
|
|
from babelfish import Language
|
|
print Language('eng')
|
|
|
|
import subliminal
|
|
|
|
subliminal.cache_region.configure('dogpile.cache.memory')
|
|
del nzbtomedia.MYAPP |