aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/db.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-19 14:35:19 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-19 14:35:19 +0000
commitf973710dc6bcfc13f8db4e5720dd2aeb1518b012 (patch)
tree2587e239e9fa626bf4c478f08a8946bb7f66434c /lib/dvb/db.cpp
parent4aa7b11f525aaa22b3ad6b0d247ea67f39b498de (diff)
downloadenigma2-f973710dc6bcfc13f8db4e5720dd2aeb1518b012.tar.gz
enigma2-f973710dc6bcfc13f8db4e5720dd2aeb1518b012.zip
show real satellite name in satellite list
Diffstat (limited to 'lib/dvb/db.cpp')
-rw-r--r--lib/dvb/db.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp
index a3a98c04..33a422f8 100644
--- a/lib/dvb/db.cpp
+++ b/lib/dvb/db.cpp
@@ -854,19 +854,12 @@ eDVBDBSatellitesQuery::eDVBDBSatellitesQuery(eDVBDB *db, const eServiceReference
{
eServiceReferenceDVB ref;
ref.setDVBNamespace(dvbnamespace);
+ ref.flags=eServiceReference::flagDirectory;
char buf[64];
-// TODO get real satellite name..
-// but i dont like to parse the satellites.xml here.. and in the python part
- 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;
unsigned int pos=ref.path.find("FROM");
- ref.flags=eServiceReference::flagDirectory;
ref.path.erase(pos);
ref.path+="ORDER BY name";
// eDebug("ref.path now %s", ref.path.c_str());
@@ -877,11 +870,6 @@ 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());
- 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);
}
}