diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-19 01:52:12 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-19 01:52:12 +0000 |
| commit | e854296fa3301e16885ff959bb083b0f18919c44 (patch) | |
| tree | 018c075cf9f40ee99af509060a7885870a1eb739 /lib | |
| parent | ea7954734548f81c7419e6b8007800bcf3f12169 (diff) | |
| download | enigma2-e854296fa3301e16885ff959bb083b0f18919c44.tar.gz enigma2-e854296fa3301e16885ff959bb083b0f18919c44.zip | |
remove some debug prints
this commit breaks enigma2... sorry... the automatic scan throws a "KeyError"
but the serviceselection looks nicer now :)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/db.cpp | 11 | ||||
| -rw-r--r-- | lib/python/Components/NimManager.py | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp index 17196f05..a3a98c04 100644 --- a/lib/dvb/db.cpp +++ b/lib/dvb/db.cpp @@ -857,7 +857,11 @@ eDVBDBSatellitesQuery::eDVBDBSatellitesQuery(eDVBDB *db, const eServiceReference char buf[64]; // TODO get real satellite name.. // but i dont like to parse the satellites.xml here.. and in the python part - snprintf(buf, 64, "Services - %d", dvbnamespace>>16); + int tpos = dvbnamespace>>16; + if (tpos > 1800) // west + snprintf(buf, 64, "Services (%3.1fW)", (0 - (tpos - 3600)) / 10.0); + else + snprintf(buf, 64, "Services (%3.1fE)", tpos / 10.0); ref.name=buf; snprintf(buf, 64, "(satellitePosition == %d) && ", dvbnamespace>>16); ref.path=buf+source.path; @@ -873,7 +877,10 @@ eDVBDBSatellitesQuery::eDVBDBSatellitesQuery(eDVBDB *db, const eServiceReference ref.path.erase(pos+5); ref.path+="PROVIDERS ORDER BY name"; // eDebug("ref.path now %s", ref.path.c_str()); - snprintf(buf, 64, "Providers - %d", dvbnamespace>>16); + if (tpos > 1800) // west + snprintf(buf, 64, "Providers (%3.1fW)", (0 - (tpos - 3600)) / 10.0); + else + snprintf(buf, 64, "Providers (%3.1fE)", tpos / 10.0); ref.name=buf; m_list.push_back(ref); } diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 3bc47ec3..183f9d2d 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -129,9 +129,7 @@ class NimManager: #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',"")) tpos = int(attrs.get('position',"")) if tpos < 0: - print "negative" tpos = 3600 + tpos - print "[NimManager.py] tpos:", tpos tname = attrs.get('name',"") self.satellites[tpos] = tname self.satList.append( (tname, tpos) ) |
