mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Optimize imports
This commit is contained in:
parent
f61a17b8a0
commit
ad6f0b7bb6
2 changed files with 25 additions and 23 deletions
|
@ -1,8 +1,10 @@
|
|||
#! /usr/bin/env python2
|
||||
from __future__ import print_function
|
||||
|
||||
from babelfish import Language
|
||||
import guessit
|
||||
import requests
|
||||
import subliminal
|
||||
|
||||
import core
|
||||
from core import transcoder
|
||||
|
@ -38,7 +40,6 @@ if server_responding("http://127.0.0.1:8085"):
|
|||
if server_responding("http://127.0.0.1:8090"):
|
||||
print("Mylar Running")
|
||||
|
||||
from babelfish import Language
|
||||
lan = 'pt'
|
||||
lan = Language.fromalpha2(lan)
|
||||
print(lan.alpha3)
|
||||
|
@ -59,7 +60,6 @@ if guess:
|
|||
results = r.json()
|
||||
print(results)
|
||||
|
||||
import subliminal
|
||||
subliminal.region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'})
|
||||
languages = set()
|
||||
languages.add(lan)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue