#!/usr/bin/python
from __future__ import print_function
from datasource import genericdatasource
from satxml import satxml
from lamedb import lamedb

import sys

if len(sys.argv) != 3:
    print("[lamedb2satxml] usage: %s <lamedb> <satellites.xml>" % sys.argv[0])
    sys.exit()

gen = genericdatasource()
db = lamedb(sys.argv[1])
xml = satxml(sys.argv[2])

db.read()
gen.source = db
gen.destination = xml
gen.docopymerge(action="copy")
xml.write()
예제 #2
0
파일: main.py 프로젝트: 4doe/enigma2-old
#!/usr/bin/python
from datasource import genericdatasource
from satxml import satxml
from lamedb import lamedb
from input import *
import sys
import os

maindata = genericdatasource()

sources = [satxml, lamedb]

datasources = [maindata]

for source in sources:
	datasources.append(source())
	
for source in datasources:
	source.setDatasources(datasources)

while(True):
	os.system("/usr/bin/clear")
	list = []
	for index in range(len(datasources)):
		list.append(datasources[index].getName() + (" (%d sats)" % len(datasources[index].transponderlist.keys())))
	index = inputChoices(list, "q", "quit")
	if index is None:
		break		
	
	while(True):
		print datasources[index].getStatus()
예제 #3
0
파일: main.py 프로젝트: norhap/vix-u5pvr
#!/usr/bin/python
import os

from datasource import genericdatasource
from satxml import satxml
from lamedb import lamedb
from input import *

maindata = genericdatasource()

sources = [satxml, lamedb]

datasources = [maindata]

for source in sources:
    datasources.append(source())

for source in datasources:
    source.setDatasources(datasources)

while True:
    os.system("/usr/bin/clear")
    list = []
    for index in range(len(datasources)):
        list.append(datasources[index].getName() +
                    (" (%d sats)" %
                     len(datasources[index].transponderlist.keys())))
    index = inputChoices(list, "q", "quit")
    if index is None:
        break
예제 #4
0
#!/usr/bin/python
from datasource import genericdatasource
from satxml import satxml
from lamedb import lamedb

import sys

if len(sys.argv) != 3:
	print "usage: %s <lamedb> <satellites.xml>" % sys.argv[0]
	sys.exit()

gen = genericdatasource()
db = lamedb(sys.argv[1])
xml = satxml(sys.argv[2])

db.read()
gen.source = db
gen.destination = xml
gen.docopymerge(action = "copy")
xml.write()