mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Fix print statements
This commit is contained in:
parent
c81d8bc7a5
commit
a3281d888d
1 changed files with 15 additions and 13 deletions
|
@ -1,4 +1,6 @@
|
||||||
#! /usr/bin/env python2
|
#! /usr/bin/env python2
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
|
@ -18,32 +20,32 @@ core.initialize()
|
||||||
#print label
|
#print label
|
||||||
|
|
||||||
if transcoder.isVideoGood(core.TEST_FILE, 0):
|
if transcoder.isVideoGood(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)
|
||||||
section = core.CFG.findsection('tv').isenabled()
|
section = core.CFG.findsection('tv').isenabled()
|
||||||
print section
|
print(section)
|
||||||
print len(section)
|
print(len(section))
|
||||||
fork, fork_params = autoFork('SickBeard', 'tv')
|
fork, fork_params = autoFork('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")
|
||||||
|
|
||||||
from babelfish import Language
|
from babelfish import Language
|
||||||
lan = 'pt'
|
lan = 'pt'
|
||||||
lan = Language.fromalpha2(lan)
|
lan = Language.fromalpha2(lan)
|
||||||
print lan.alpha3
|
print(lan.alpha3)
|
||||||
vidName = "/volume1/Public/Movies/A Few Good Men/A Few Good Men(1992).mkv"
|
vidName = "/volume1/Public/Movies/A Few Good Men/A Few Good Men(1992).mkv"
|
||||||
inputName = "in.the.name.of.ben.hur.2016.bdrip.x264-rusted.nzb"
|
inputName = "in.the.name.of.ben.hur.2016.bdrip.x264-rusted.nzb"
|
||||||
guess = guessit.guessit(inputName)
|
guess = guessit.guessit(inputName)
|
||||||
|
@ -59,7 +61,7 @@ if guess:
|
||||||
url = "http://www.omdbapi.com"
|
url = "http://www.omdbapi.com"
|
||||||
r = requests.get(url, params={'y': year, 't': title}, verify=False, timeout=(60, 300))
|
r = requests.get(url, params={'y': year, 't': title}, verify=False, timeout=(60, 300))
|
||||||
results = r.json()
|
results = r.json()
|
||||||
print results
|
print(results)
|
||||||
|
|
||||||
import subliminal
|
import subliminal
|
||||||
subliminal.region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'})
|
subliminal.region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'})
|
||||||
|
@ -68,4 +70,4 @@ languages.add(lan)
|
||||||
video = subliminal.scan_video(vidName)
|
video = subliminal.scan_video(vidName)
|
||||||
subtitles = subliminal.download_best_subtitles({video}, languages)
|
subtitles = subliminal.download_best_subtitles({video}, languages)
|
||||||
subliminal.save_subtitles(video, subtitles[video])
|
subliminal.save_subtitles(video, subtitles[video])
|
||||||
del core.MYAPP
|
del core.MYAPP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue