diff options
| author | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-15 02:05:00 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-15 02:05:00 +0200 |
| commit | 17d12fc3339d68b023ab6f388a3576af2bcb4949 (patch) | |
| tree | e1851fd7e7f2ab85b667415ee0158185034b7ce3 /lib/service/servicedvb.cpp | |
| parent | c68943c97eeb0107f724ec96aae311e319c750a9 (diff) | |
| download | enigma2-17d12fc3339d68b023ab6f388a3576af2bcb4949.tar.gz enigma2-17d12fc3339d68b023ab6f388a3576af2bcb4949.zip | |
use ::getInfoObject for filesize (allows >4G)
Diffstat (limited to 'lib/service/servicedvb.cpp')
| -rw-r--r-- | lib/service/servicedvb.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index c256213d..70675fd7 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -336,6 +336,7 @@ public: int isPlayable(const eServiceReference &ref, const eServiceReference &ignore) { return 1; } int getInfo(const eServiceReference &ref, int w); std::string getInfoString(const eServiceReference &ref,int w); + PyObject *getInfoObject(const eServiceReference &r, int what); }; DEFINE_REF(eStaticServiceDVBPVRInformation); @@ -427,6 +428,17 @@ std::string eStaticServiceDVBPVRInformation::getInfoString(const eServiceReferen } } +PyObject *eStaticServiceDVBPVRInformation::getInfoObject(const eServiceReference &r, int what) +{ + switch (what) + { + case iServiceInformation::sFileSize: + return PyLong_FromLongLong(m_parser.m_filesize); + default: + Py_RETURN_NONE; + } +} + RESULT eStaticServiceDVBPVRInformation::getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &evt, time_t start_time) { if (!ref.path.empty()) |
