skeleton of implementation of service editing for Enigma

This commit is contained in:
Dmitriy Yefremov
2018-02-23 17:14:08 +03:00
parent 0c5b9165ef
commit 6115433aba
7 changed files with 149 additions and 61 deletions

View File

@@ -4,7 +4,7 @@
"""
from xml.dom.minidom import parse, Document
from .ecommons import POLARIZATION, FEC, SYSTEM, MODULATION, PLS_MODE, Transponder, Satellite
from .ecommons import POLARIZATION, FEC, SYSTEM, MODULATION, PLS_MODE, Transponder, Satellite, get_key_by_value
__COMMENT = (" File was created in DemonEditor\n\n"
"usable flags are\n"
@@ -110,11 +110,5 @@ def parse_satellites(path):
return satellites
def get_key_by_value(dictionary, value):
for k, v in dictionary.items():
if v == value:
return k
if __name__ == "__main__":
pass