Changeset 3614 for ipk


Ignore:
Timestamp:
Jul 23, 2010, 1:01:29 PM (16 years ago)
Author:
civer
Message:

[IPK /CrossEPG]

  • added new files...
Location:
ipk/source/epg_crossepg_0_41_svn38/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/epg_crossepg_0_41_svn38/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_downloader.py

    r3613 r3614  
    2626        def __init__(self, session, endCallback = None, provider = None):
    2727                self.session = session
    28                 if (getDesktop(0).size().width() < 800):
     28                if (getDesktop(0).size().width() == 1280):
     29                        skin = "%s/skins/downloader_hd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
     30                elif (getDesktop(0).size().width() == 1024):
     31                        skin = "%s/skins/downloader_ks.xml" % (os.path.dirname(sys.modules[__name__].__file__))
     32                else:
    2933                        skin = "%s/skins/downloader_sd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
    30                 else:
    31                         skin = "%s/skins/downloader_hd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
    3234                f = open(skin, "r")
    3335                self.skin = f.read()
  • ipk/source/epg_crossepg_0_41_svn38/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_loader.py

    r3613 r3614  
    5656                        self.home_directory = "/var/crossepg"
    5757#---- CIVER added
    58                 elif pathExists("/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg")
     58                elif pathExists("/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg"):
    5959                        self.home_directory = "/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg"
    6060#---------------
  • ipk/source/epg_crossepg_0_41_svn38/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepglib.py

    r3613 r3614  
    6262                        self.home_directory = "/var/crossepg"
    6363#---- CIVER added
    64                 elif pathExists("/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg")
     64                elif pathExists("/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg"):
    6565                        self.home_directory = "/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg"
    6666#---------------
     
    257257                        self.home_directory = "/var/crossepg"
    258258#---- CIVER added
    259                 elif pathExists("/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg")
     259                elif pathExists("/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg"):
    260260                        self.home_directory = "/var/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg"
    261261#---------------
     
    411411                print "[CrossEPG_Wrapper] -> LAMEDB %s" % (value)
    412412                cmd = "LAMEDB %s\n" % (value)
    413                 self.cmd.write(cmd, len(cmd))
     413                self.cmd.write(cmd)
    414414               
    415415        def epgdat(self, value):
    416416                print "[CrossEPG_Wrapper] -> EPGDAT %s" % (value)
    417417                cmd = "EPGDAT %s\n" % (value)
    418                 self.cmd.write(cmd, len(cmd))
     418                self.cmd.write(cmd)
    419419                       
    420420        def demuxer(self, value):
    421421                print "[CrossEPG_Wrapper] -> DEMUXER %s" % (value)
    422422                cmd = "DEMUXER %s\n" % (value)
    423                 self.cmd.write(cmd, len(cmd))
     423                self.cmd.write(cmd)
    424424
    425425        def download(self, provider):
    426426                print "[CrossEPG_Wrapper] -> DOWNLOAD %s" % (provider)
    427427                cmd = "DOWNLOAD %s\n" % (provider)
    428                 self.cmd.write(cmd, len(cmd))
     428                self.cmd.write(cmd)
    429429               
    430430        def convert(self):
     
    432432                self.__callCallbacks(self.EVENT_ACTION, _("Converting data"))
    433433                self.__callCallbacks(self.EVENT_STATUS, "")
    434                 self.cmd.write("CONVERT\n", 8)
     434                self.cmd.write("CONVERT\n")
    435435               
    436436        def importx(self):
    437437                print "[CrossEPG_Wrapper] -> IMPORT"
    438                 self.cmd.write("IMPORT\n", 7)
     438                self.cmd.write("IMPORT\n")
    439439               
    440440        def text(self):
     
    442442                self.__callCallbacks(self.EVENT_ACTION, _("Loading data"))
    443443                self.__callCallbacks(self.EVENT_STATUS, "")
    444                 self.cmd.write("TEXT\n", 5)
     444                self.cmd.write("TEXT\n")
    445445                       
    446446        def stop(self):
    447447                print "[CrossEPG_Wrapper] -> STOP"
    448                 self.cmd.write("STOP\n", 5)
     448                self.cmd.write("STOP\n")
    449449
    450450        def save(self):
     
    452452                self.__callCallbacks(self.EVENT_ACTION, _("Saving data"))
    453453                self.__callCallbacks(self.EVENT_STATUS, "")
    454                 self.cmd.write("SAVE\n", 5)
     454                self.cmd.write("SAVE\n")
    455455
    456456        def wait(self):
    457457                print "[CrossEPG_Wrapper] -> WAIT"
    458                 self.cmd.write("WAIT\n", 5)
     458                self.cmd.write("WAIT\n")
    459459
    460460        def quit(self):
    461461                print "[CrossEPG_Wrapper] -> QUIT"
    462                 self.cmd.write("QUIT\n", 5)
     462                self.cmd.write("QUIT\n")
Note: See TracChangeset for help on using the changeset viewer.