mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Fix quotes - standardize to single-quoted strings
This commit is contained in:
parent
85b4e22046
commit
c5343889fb
30 changed files with 1257 additions and 1257 deletions
|
@ -14,13 +14,13 @@ from core.utils import server_responding
|
|||
# Initialize the config
|
||||
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)
|
||||
|
||||
if transcoder.is_video_good(core.TEST_FILE, 0):
|
||||
print("FFPROBE Works")
|
||||
print('FFPROBE Works')
|
||||
else:
|
||||
print("FFPROBE FAILED")
|
||||
print('FFPROBE FAILED')
|
||||
|
||||
test = core.CFG['SickBeard', 'NzbDrone']['tv'].isenabled()
|
||||
print(test)
|
||||
|
@ -29,22 +29,22 @@ 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)
|
||||
print(lan.alpha3)
|
||||
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"
|
||||
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'
|
||||
guess = guessit.guessit(inputName)
|
||||
if guess:
|
||||
# Movie Title
|
||||
|
@ -55,7 +55,7 @@ if guess:
|
|||
year = None
|
||||
if 'year' in guess:
|
||||
year = guess['year']
|
||||
url = "http://www.omdbapi.com"
|
||||
url = 'http://www.omdbapi.com'
|
||||
r = requests.get(url, params={'y': year, 't': title}, verify=False, timeout=(60, 300))
|
||||
results = r.json()
|
||||
print(results)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue