Changeset 12090
- Timestamp:
- Dec 7, 2011, 11:58:44 AM (9 years ago)
- Location:
- ipk
- Files:
-
- 65 added
- 53 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapepg_crossepg/CONTROL/control
r7451 r12090 1 1 Package: enigma2-plugin-swapepg-crossepg 2 Version: 0.6 12 Version: 0.62 3 3 Architecture: sh4 4 4 OE: CrossEPG by sandro cavazzoni for SKYit, SKYuk, AUsat -
ipk/source.sh4/swapepg_crossepg/CONTROL/preinst
r11789 r12090 25 25 exit 1 26 26 fi 27 echo "swapstick found...." 27 echo "swapstick found...." 28 28 29 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then30 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`31 FREE=`expr $SPACE - 100`32 SIZE=30733 echo "checking freespace"34 echo packege size $SIZE kb35 echo freespace size $FREE kb36 if [ "$FREE" -lt "$SIZE" ]; then37 echo "sorry no freespace left on device"38 exit 139 else40 echo ok41 fi42 fi43 echo "installing CrossEPG 0.61 for Swapstick..."44 29 buildgroup=`cat /etc/.buildgroup` 45 30 echo "checking OS" … … 52 37 exit 1 53 38 fi 39 40 echo "installing CrossEPG for Swapstick..." 41 sync 42 54 43 exit 0 -
ipk/source.sh4/swapepg_crossepg/CONTROL/prerm
r7451 r12090 11 11 echo freespace size $FREE kb 12 12 fi 13 echo "removing CrossEPG v0.61"13 echo "removing CrossEPG...." 14 14 exit 0 -
ipk/source.sh4/swapepg_crossepg/var/swap/crossepg/crossepg_epgmove.sh
r7451 r12090 9 9 fi 10 10 11 if [ -f "/etc/enigma2/settings" ] # if enigma2 configuration exist 12 then 13 EPGDAT=`cat /etc/enigma2/settings | grep "config\.misc\.epgcache_filename=" | sed "s/config\.misc\.epgcache_filename=//"` 14 else # else default path 15 EPGDAT="/hdd/epg.dat" 16 fi 17 18 if [ ! -n "$EPGDAT" ] 19 then 20 EPGDAT="/hdd/epg.dat" 21 fi 22 11 23 if [ -f "$DBROOT/ext.epg.dat" ] # try on configuration path 12 24 then 13 25 echo copying ext.epg.dat from $DBROOT 14 $HOME/crossepg_epgcopy "$DBROOT/ext.epg.dat" /hdd/epg.dat26 $HOME/crossepg_epgcopy "$DBROOT/ext.epg.dat" $EPGDAT 15 27 elif [ -f "/hdd/crossepg/ext.epg.dat" ] # if we have a bad path try with default path 16 28 then -
ipk/source.sh4/swapepg_crossepg/var/swap/crossepg/providers/krkadoni_exyu_xmltv.conf
r7451 r12090 1 1 description=Krkadoni ExYu XMLTV 2 2 protocol=xmltv 3 channels =http://www.krkadoni.com/krkadoni.channels.xml.gz4 url=http://krkadoni.com/krkadonixmltv_exyu.gz3 channels_url_0=http://www.krkadoni.com/krkadoni.channels.xml.gz 4 epg_url_0=http://krkadoni.com/krkadonixmltv_exyu.gz 5 5 preferred_language=eng -
ipk/source.sh4/swapepg_crossepg/var/swap/crossepg/providers/linuxsat_exussr_xmltv.conf
r7451 r12090 1 1 description=Linuxsat ExUSSR XMLTV 2 2 protocol=xmltv 3 channels =http://linux-sat.tv/epg/ls.channels.xml.gz4 url=http://linux-sat.tv/epg/tvprogram_ua_ru.gz3 channels_url_0=http://linux-sat.tv/epg/ls.channels.xml.gz 4 epg_url_0=http://linux-sat.tv/epg/tvprogram_ua_ru.gz 5 5 preferred_language=eng -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_about.py
r7451 r12090 54 54 version = "unknow version" 55 55 56 credit = "SIFTeam CrossEPG %s (c) 2009-201 0Sandro Cavazzoni\n" % version56 credit = "SIFTeam CrossEPG %s (c) 2009-2011 Sandro Cavazzoni\n" % version 57 57 credit += "http://code.google.com/p/crossepg/\n\n" 58 58 credit += "Application credits:\n" 59 59 credit += "- Sandro Cavazzoni aka skaman (main developer)\n" 60 60 credit += "- Ambrosa (scripts developer)\n" 61 credit += "- Sergiotas (mhw2epgdownloader author)\n" 62 credit += "- u Killer Bestia (server side application maintainer)\n" 61 63 credit += "- Spaeleus (italian translations)\n" 62 credit += "- Bodyan (ukrainian translations)\n\n" 64 credit += "- Bodyan (ukrainian translations)\n" 65 credit += "- Kosmacz (polish translations)\n" 66 credit += "- Ku4a (russian translations)\n\n" 63 67 credit += "Sources credits:\n" 64 68 credit += "- Rytec http://www.rytec.be (xmltv providers for many countries)\n" 65 credit += "- Krkadoni http://www.krkadoni.com/ (xmltv provider for Ex Yugoslavia and various xepgdb sources maintainer)\n" 66 credit += "- Bodyan and dillinger http://linux-sat.tv/ (xmltv provider for ex USSR channels)" 69 credit += "- Krkadoni http://www.krkadoni.com/ (xmltv provider for Ex Yugoslavia)\n" 70 credit += "- Bodyan and dillinger http://linux-sat.tv/ (xmltv provider for ex USSR channels)\n" 71 credit += "- Devilcosta http://sgcpm.com/ (xmltv provider for nova channels in greek and english)" 67 72 self["about"].setText(credit) 68 73 -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_loader.py
r7451 r12090 139 139 140 140 def loadEPG(self): 141 cmd = "%s/crossepg_epgcopy %s/ext.epg.dat /hdd/epg.dat" % (self.home_directory, self.db_root) 141 try: 142 cmd = "%s/crossepg_epgcopy %s/ext.epg.dat %s" % (self.home_directory, self.db_root, config.misc.epgcache_filename.value) 143 except Exception, e: 144 cmd = "%s/crossepg_epgcopy %s/ext.epg.dat /hdd/epg.dat" % (self.home_directory, self.db_root) 145 142 146 print "[CrossEPG_Loader] %s" % (cmd) 143 147 os.system(cmd) -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_main.py
r7451 r12090 16 16 self.patchtype = getEPGPatchType() 17 17 18 def downloader(self, session , **kwargs):18 def downloader(self, session): 19 19 self.session = session 20 20 crossepg_auto.lock = True … … 26 26 self.config.deleteLog() 27 27 self.session.openWithCallback(self.downloadCallback, CrossEPG_Downloader, self.config.providers) 28 29 def loaderAsPlugin(self, session): 30 self.session = session 31 crossepg_auto.lock = True 32 crossepg_auto.stop() 33 self.loader() 28 34 29 35 def downloadCallback(self, ret): … … 73 79 crossepg_auto.lock = False 74 80 75 def setup(self, session , **kwargs):81 def setup(self, session): 76 82 crossepg_auto.lock = True 77 83 crossepg_auto.stop() -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_menu.py
r7451 r12090 11 11 from crossepg_loader import CrossEPG_Loader 12 12 from crossepg_ordering import CrossEPG_Ordering 13 from crossepg_rytec_update import CrossEPG_Rytec_Update 14 from crossepg_xepgdb_update import CrossEPG_Xepgdb_Update 13 15 from crossepg_locale import _ 14 16 … … 58 60 l.append(self.buildListEntry(_("XEPGDB providers"), "xepgdb.png")) 59 61 l.append(self.buildListEntry(_("Scripts providers"), "scripts.png")) 62 l.append(self.buildListEntry(_("MHW2 providers"), "opentv.png")) 60 63 l.append(self.buildListEntry(_("Providers start order"), "reorder.png")) 64 l.append(self.buildListEntry(_("Update rytec providers"), "rytec_small.png")) 65 l.append(self.buildListEntry(_("Update xepgdb providers"), "xepgdb.png")) 61 66 l.append(self.buildListEntry(_("Download now"), "download.png")) 62 67 l.append(self.buildListEntry(_("Force csv import now"), "csv.png")) … … 105 110 self.session.open(CrossEPG_Providers, "script") 106 111 elif index == 5: 112 self.session.open(CrossEPG_Providers, "mhw2") 113 elif index == 6: 107 114 self.session.open(CrossEPG_Ordering) 108 elif index == 6: 115 elif index == 7: 116 self.session.open(CrossEPG_Rytec_Update) 117 elif index == 8: 118 self.session.open(CrossEPG_Xepgdb_Update) 119 elif index == 9: 109 120 self.config.load() 110 121 self.config.deleteLog() 111 122 self.downloader() 112 elif index == 7:123 elif index == 10: 113 124 self.importer() 114 elif index == 8:125 elif index == 11: 115 126 self.converter() 116 elif index == 9:127 elif index == 12: 117 128 self.loader() 118 elif index == 1 0:129 elif index == 13: 119 130 self.session.open(CrossEPG_Info) 120 elif index == 1 1:131 elif index == 14: 121 132 self.session.open(CrossEPG_About) 122 133 … … 158 169 if self.config.download_manual_reboot: 159 170 from Screens.Standby import TryQuitMainloop 160 se ssion.open(TryQuitMainloop, 3)171 self.session.open(TryQuitMainloop, 3) 161 172 162 173 def loader(self): -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_providers.py
r7451 r12090 63 63 elif self.protocol == "xepgdb": 64 64 self.setTitle("CrossEPG - XEPGDB providers") 65 elif self.protocol == "script s":65 elif self.protocol == "script": 66 66 self.setTitle("CrossEPG - Scripts providers") 67 elif self.protocol == "mhw2": 68 self.setTitle("CrossEPG - MHW2 providers") 67 69 68 70 def buildList(self): 69 71 self.list = [] 70 72 i = 0 73 protocol = self.protocol 74 if protocol == "mhw2": 75 protocol = "script" 76 print protocol 77 print self.protocol 71 78 for provider in self.providers[0]: 72 if self.providers[2][i] == self.protocol: 73 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 79 if self.providers[2][i] == protocol: 80 if protocol == "script": 81 description = self.providers[1][i].lower() 82 # we use find("mhw2") as workaround because mhw2 doesn't exist as provider type 83 if self.protocol == "mhw2" and description.find("mhw2") != -1: 84 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 85 elif self.protocol == "script" and description.find("mhw2") == -1: 86 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 87 else: 88 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 74 89 i += 1 75 90 -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepg_setup.py
r7451 r12090 4 4 from Screens.MessageBox import MessageBox 5 5 6 from Components.config import KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_0, ConfigYesNo, ConfigSelection, ConfigClock 6 from Components.config import KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_0, ConfigYesNo, ConfigSelection, ConfigClock, config, configfile 7 7 from Components.ConfigList import ConfigList 8 8 from Components.Button import Button … … 21 21 22 22 from time import * 23 24 import os 23 25 24 26 class CrossEPG_Setup(Screen): … … 53 55 self.show_extension = self.config.show_extension 54 56 self.show_plugin = self.config.show_plugin 57 self.show_force_reload_as_plugin = self.config.show_force_reload_as_plugin 55 58 56 59 # make devices entries … … 60 63 61 64 for partition in harddiskmanager.getMountedPartitions(): 62 if (partition.mountpoint != '/') and (partition.mountpoint != '') : #and self.isMountedInRW(partition.mountpoint):65 if (partition.mountpoint != '/') and (partition.mountpoint != '') and self.isMountedInRW(partition.mountpoint): 63 66 self.mountpoint.append(partition.mountpoint + "/crossepg") 64 67 … … 114 117 self.makeList() 115 118 119 def isMountedInRW(self, path): 120 testfile = path + "/tmp-rw-test" 121 os.system("touch " + testfile) 122 if os.path.exists(testfile): 123 os.system("rm -f " + testfile) 124 return True 125 return False 126 116 127 def showWarning(self): 117 128 self.session.open(MessageBox, _("PLEASE READ!\nNo disk found. An hard drive or an usb pen is HARDLY SUGGESTED. If you still want use your internal flash pay attention to:\n(1) If you don't have enough free space your box may completely block and you need to flash it again\n(2) Many write operations on your internal flash may damage your flash memory"), type = MessageBox.TYPE_ERROR) … … 188 199 self.list.append((_("Show as plugin"), ConfigYesNo(self.config.show_plugin > 0))) 189 200 self.list.append((_("Show as extension"), ConfigYesNo(self.config.show_extension > 0))) 201 self.list.append((_("Show 'Force reload' as plugin"), ConfigYesNo(self.config.show_force_reload_as_plugin > 0))) 190 202 191 203 self["config"].setList(self.list) … … 233 245 self.config.show_plugin = int(self.list[i][1].getValue()) 234 246 self.config.show_extension = int(self.list[i+1][1].getValue()) 247 self.config.show_force_reload_as_plugin = int(self.list[i+2][1].getValue()) 235 248 236 249 if redraw: … … 247 260 248 261 if index == 0: 249 self["information"].setText(_("Drive where you save data.\nThe drive MUST be mounted in rw "))262 self["information"].setText(_("Drive where you save data.\nThe drive MUST be mounted in rw. If you can't see your device here probably is mounted as read only or autofs handle it only in read only mode. In case of mount it manually and try again")) 250 263 elif index == 1: 251 264 self["information"].setText(_("Lamedb used for epg.dat conversion.\nThis option doesn't work with crossepg patch v2")) … … 279 292 self.config.configured = 1 280 293 self.config.save() 294 try: 295 if self.config.db_root[-8:] == "crossepg": 296 config.misc.epgcache_filename.setValue(self.config.db_root[:-9] + "/epg.dat") 297 else: 298 config.misc.epgcache_filename.setValue(self.config.db_root + "/epg.dat") 299 config.misc.epgcache_filename.callNotifiersOnSaveAndCancel = True 300 config.misc.epgcache_filename.save() 301 configfile.save() 302 except Exception, e: 303 print "custom epgcache filename not supported by current enigma2 version" 304 305 if getEPGPatchType() == -1: 306 # exec crossepg_prepare_pre_start for unpatched images 307 os.system(self.config.home_directory + "/crossepg_prepare_pre_start.sh") 308 281 309 if self.show_extension != self.config.show_extension or self.show_plugin != self.config.show_plugin: 282 310 for plugin in plugins.getPlugins(PluginDescriptor.WHERE_PLUGINMENU): -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/crossepglib.py
r7451 r12090 61 61 show_plugin = 1 62 62 show_extension = 1 63 show_force_reload_as_plugin = 0 63 64 last_partial_download_timestamp = 0 64 65 last_full_download_timestamp = 0 … … 127 128 elif key == "show_extension": 128 129 self.show_extension = int(value); 130 elif key == "show_force_reload_as_plugin": 131 self.show_force_reload_as_plugin = int(value); 129 132 elif key == "configured": 130 133 self.configured = int(value); … … 163 166 f.write("show_plugin=%d\n" % (self.show_plugin)) 164 167 f.write("show_extension=%d\n" % (self.show_extension)) 168 f.write("show_force_reload_as_plugin=%d\n" % (self.show_force_reload_as_plugin)) 165 169 f.write("configured=%d\n" % (self.configured)) 166 170 -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/plugin.py
r7451 r12090 10 10 return [] 11 11 12 def call_downloader(session, **kwargs): 13 crossepg_main.downloader(session) 14 15 def call_loaderAsPlugin(session, **kwargs): 16 crossepg_main.loaderAsPlugin(session) 17 18 def call_setup(session, **kwargs): 19 crossepg_main.setup(session) 20 21 def call_autostart(reason, session): 22 crossepg_main.autostart(reason, session) 23 12 24 def Plugins(**kwargs): 13 25 config = CrossEPG_Config() … … 18 30 description=_("An EPG downloader"), 19 31 where = [ PluginDescriptor.WHERE_EXTENSIONSMENU, PluginDescriptor.WHERE_PLUGINMENU ], 20 fnc = c rossepg_main.downloader))32 fnc = call_downloader)) 21 33 elif config.show_extension == 1: 22 34 plugins.append(PluginDescriptor(name="CrossEPG Downloader", 23 35 description=_("An EPG downloader"), 24 36 where = PluginDescriptor.WHERE_EXTENSIONSMENU, 25 fnc = c rossepg_main.downloader))37 fnc = call_downloader)) 26 38 elif config.show_plugin == 1: 27 39 plugins.append(PluginDescriptor(name="CrossEPG Downloader", 28 40 description=_("An EPG downloader"), 29 41 where = PluginDescriptor.WHERE_PLUGINMENU, 30 fnc = c rossepg_main.downloader))42 fnc = call_downloader)) 31 43 32 44 if config.isQBOXHD(): … … 34 46 description=_("CrossEPG setup panel"), 35 47 where = PluginDescriptor.WHERE_PLUGINMENU, 36 fnc = c rossepg_main.setup))48 fnc = call_setup)) 37 49 else: 38 50 plugins.append(PluginDescriptor(name="CrossEPG", … … 44 56 description = _("CrossEPG automatic actions"), 45 57 where = PluginDescriptor.WHERE_SESSIONSTART, 46 fnc = crossepg_main.autostart)) 58 fnc = call_autostart)) 59 60 if config.show_force_reload_as_plugin == 1: 61 plugins.append(PluginDescriptor(name="CrossEPG Force Reload", 62 description=_("CrossEPG Force Reload"), 63 where = PluginDescriptor.WHERE_PLUGINMENU, 64 fnc = call_loaderAsPlugin)) 65 47 66 return plugins; -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/skins/downloader_hd.xml
r7451 r12090 1 1 <screen position="530,590" size="600,70" title="CrossEPG" flags="wfNoBorder"> 2 2 <widget name="background" position="0,0" size="600,80" zPosition="-1" /> 3 <widget name="action" halign="center" valign="center" position="65,10" size="520,20" font="Regular;16" />4 <widget name="status" halign="center" valign="center" position="65,30" size="520,20" font="Regular;16" />3 <widget name="action" halign="center" valign="center" position="65,10" size="520,20" font="Regular;16" transparent="1"/> 4 <widget name="status" halign="center" valign="center" position="65,30" size="520,20" font="Regular;16" transparent="1"/> 5 5 <widget name="progress" position="65,55" size="520,5" borderWidth="1" /> 6 6 </screen> -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/skins/downloader_sd.xml
r7451 r12090 1 1 <screen position="330,450" size="350,70" title="CrossEPG" flags="wfNoBorder"> 2 2 <widget name="background" position="0,0" size="350,80" zPosition="-1" /> 3 <widget name="action" halign="center" valign="center" position="65,10" size="270,20" font="Regular;15" />4 <widget name="status" halign="center" valign="center" position="65,30" size="270,20" font="Regular;15" />3 <widget name="action" halign="center" valign="center" position="65,10" size="270,20" font="Regular;15" transparent="1"/> 4 <widget name="status" halign="center" valign="center" position="65,30" size="270,20" font="Regular;15" transparent="1"/> 5 5 <widget name="progress" position="65,55" size="270,5" borderWidth="1" /> 6 6 </screen> -
ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/version.py
r7451 r12090 1 version = "0.6. 1 (svn 241)"1 version = "0.6.2)" -
ipk/source/epg_crossepg/CONTROL/control
r7451 r12090 1 1 Package: enigma2-plugin-epg-crossepg 2 Version: 0.6 12 Version: 0.62 3 3 Architecture: sh4 4 4 OE: CrossEPG by sandro cavazzoni for SKYit, SKYuk, AUsat -
ipk/source/epg_crossepg/CONTROL/preinst
r11791 r12090 32 32 fi 33 33 fi 34 echo "installing CrossEPG 0.61 ..."35 34 36 35 buildgroup=`cat /etc/.buildgroup` … … 39 38 echo --------------------------- 40 39 echo DONT USE this IPK Package!! 41 echo --- 40 echo --- 42 41 echo Only for $buildgroup Image!! 43 42 echo --------------------------- 44 43 exit 1 45 44 fi 45 46 echo "installing CrossEPG ..." 47 sync 46 48 exit 0 -
ipk/source/epg_crossepg/CONTROL/prerm
r7451 r12090 8 8 echo freespace size $FREE kb 9 9 fi 10 echo "removing CrossEPG v0.61"10 echo "removing CrossEPG...." 11 11 exit 0 -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_about.py
r7451 r12090 54 54 version = "unknow version" 55 55 56 credit = "SIFTeam CrossEPG %s (c) 2009-201 0Sandro Cavazzoni\n" % version56 credit = "SIFTeam CrossEPG %s (c) 2009-2011 Sandro Cavazzoni\n" % version 57 57 credit += "http://code.google.com/p/crossepg/\n\n" 58 58 credit += "Application credits:\n" 59 59 credit += "- Sandro Cavazzoni aka skaman (main developer)\n" 60 60 credit += "- Ambrosa (scripts developer)\n" 61 credit += "- Sergiotas (mhw2epgdownloader author)\n" 62 credit += "- u Killer Bestia (server side application maintainer)\n" 61 63 credit += "- Spaeleus (italian translations)\n" 62 credit += "- Bodyan (ukrainian translations)\n\n" 64 credit += "- Bodyan (ukrainian translations)\n" 65 credit += "- Kosmacz (polish translations)\n" 66 credit += "- Ku4a (russian translations)\n\n" 63 67 credit += "Sources credits:\n" 64 68 credit += "- Rytec http://www.rytec.be (xmltv providers for many countries)\n" 65 credit += "- Krkadoni http://www.krkadoni.com/ (xmltv provider for Ex Yugoslavia and various xepgdb sources maintainer)\n" 66 credit += "- Bodyan and dillinger http://linux-sat.tv/ (xmltv provider for ex USSR channels)" 69 credit += "- Krkadoni http://www.krkadoni.com/ (xmltv provider for Ex Yugoslavia)\n" 70 credit += "- Bodyan and dillinger http://linux-sat.tv/ (xmltv provider for ex USSR channels)\n" 71 credit += "- Devilcosta http://sgcpm.com/ (xmltv provider for nova channels in greek and english)" 67 72 self["about"].setText(credit) 68 73 -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_loader.py
r7451 r12090 139 139 140 140 def loadEPG(self): 141 cmd = "%s/crossepg_epgcopy %s/ext.epg.dat /hdd/epg.dat" % (self.home_directory, self.db_root) 141 try: 142 cmd = "%s/crossepg_epgcopy %s/ext.epg.dat %s" % (self.home_directory, self.db_root, config.misc.epgcache_filename.value) 143 except Exception, e: 144 cmd = "%s/crossepg_epgcopy %s/ext.epg.dat /hdd/epg.dat" % (self.home_directory, self.db_root) 145 142 146 print "[CrossEPG_Loader] %s" % (cmd) 143 147 os.system(cmd) -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_main.py
r7451 r12090 16 16 self.patchtype = getEPGPatchType() 17 17 18 def downloader(self, session , **kwargs):18 def downloader(self, session): 19 19 self.session = session 20 20 crossepg_auto.lock = True … … 26 26 self.config.deleteLog() 27 27 self.session.openWithCallback(self.downloadCallback, CrossEPG_Downloader, self.config.providers) 28 29 def loaderAsPlugin(self, session): 30 self.session = session 31 crossepg_auto.lock = True 32 crossepg_auto.stop() 33 self.loader() 28 34 29 35 def downloadCallback(self, ret): … … 73 79 crossepg_auto.lock = False 74 80 75 def setup(self, session , **kwargs):81 def setup(self, session): 76 82 crossepg_auto.lock = True 77 83 crossepg_auto.stop() -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_menu.py
r7451 r12090 11 11 from crossepg_loader import CrossEPG_Loader 12 12 from crossepg_ordering import CrossEPG_Ordering 13 from crossepg_rytec_update import CrossEPG_Rytec_Update 14 from crossepg_xepgdb_update import CrossEPG_Xepgdb_Update 13 15 from crossepg_locale import _ 14 16 … … 58 60 l.append(self.buildListEntry(_("XEPGDB providers"), "xepgdb.png")) 59 61 l.append(self.buildListEntry(_("Scripts providers"), "scripts.png")) 62 l.append(self.buildListEntry(_("MHW2 providers"), "opentv.png")) 60 63 l.append(self.buildListEntry(_("Providers start order"), "reorder.png")) 64 l.append(self.buildListEntry(_("Update rytec providers"), "rytec_small.png")) 65 l.append(self.buildListEntry(_("Update xepgdb providers"), "xepgdb.png")) 61 66 l.append(self.buildListEntry(_("Download now"), "download.png")) 62 67 l.append(self.buildListEntry(_("Force csv import now"), "csv.png")) … … 105 110 self.session.open(CrossEPG_Providers, "script") 106 111 elif index == 5: 112 self.session.open(CrossEPG_Providers, "mhw2") 113 elif index == 6: 107 114 self.session.open(CrossEPG_Ordering) 108 elif index == 6: 115 elif index == 7: 116 self.session.open(CrossEPG_Rytec_Update) 117 elif index == 8: 118 self.session.open(CrossEPG_Xepgdb_Update) 119 elif index == 9: 109 120 self.config.load() 110 121 self.config.deleteLog() 111 122 self.downloader() 112 elif index == 7:123 elif index == 10: 113 124 self.importer() 114 elif index == 8:125 elif index == 11: 115 126 self.converter() 116 elif index == 9:127 elif index == 12: 117 128 self.loader() 118 elif index == 1 0:129 elif index == 13: 119 130 self.session.open(CrossEPG_Info) 120 elif index == 1 1:131 elif index == 14: 121 132 self.session.open(CrossEPG_About) 122 133 … … 158 169 if self.config.download_manual_reboot: 159 170 from Screens.Standby import TryQuitMainloop 160 se ssion.open(TryQuitMainloop, 3)171 self.session.open(TryQuitMainloop, 3) 161 172 162 173 def loader(self): -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_providers.py
r7451 r12090 63 63 elif self.protocol == "xepgdb": 64 64 self.setTitle("CrossEPG - XEPGDB providers") 65 elif self.protocol == "script s":65 elif self.protocol == "script": 66 66 self.setTitle("CrossEPG - Scripts providers") 67 elif self.protocol == "mhw2": 68 self.setTitle("CrossEPG - MHW2 providers") 67 69 68 70 def buildList(self): 69 71 self.list = [] 70 72 i = 0 73 protocol = self.protocol 74 if protocol == "mhw2": 75 protocol = "script" 76 print protocol 77 print self.protocol 71 78 for provider in self.providers[0]: 72 if self.providers[2][i] == self.protocol: 73 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 79 if self.providers[2][i] == protocol: 80 if protocol == "script": 81 description = self.providers[1][i].lower() 82 # we use find("mhw2") as workaround because mhw2 doesn't exist as provider type 83 if self.protocol == "mhw2" and description.find("mhw2") != -1: 84 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 85 elif self.protocol == "script" and description.find("mhw2") == -1: 86 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 87 else: 88 self.list.append(self.buildListEntry(provider, self.providers[1][i], self.config.providers.count(provider) > 0)) 74 89 i += 1 75 90 -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_setup.py
r7451 r12090 4 4 from Screens.MessageBox import MessageBox 5 5 6 from Components.config import KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_0, ConfigYesNo, ConfigSelection, ConfigClock 6 from Components.config import KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_0, ConfigYesNo, ConfigSelection, ConfigClock, config, configfile 7 7 from Components.ConfigList import ConfigList 8 8 from Components.Button import Button … … 21 21 22 22 from time import * 23 24 import os 23 25 24 26 class CrossEPG_Setup(Screen): … … 53 55 self.show_extension = self.config.show_extension 54 56 self.show_plugin = self.config.show_plugin 57 self.show_force_reload_as_plugin = self.config.show_force_reload_as_plugin 55 58 56 59 # make devices entries … … 60 63 61 64 for partition in harddiskmanager.getMountedPartitions(): 62 if (partition.mountpoint != '/') and (partition.mountpoint != '') : #and self.isMountedInRW(partition.mountpoint):65 if (partition.mountpoint != '/') and (partition.mountpoint != '') and self.isMountedInRW(partition.mountpoint): 63 66 self.mountpoint.append(partition.mountpoint + "/crossepg") 64 67 … … 114 117 self.makeList() 115 118 119 def isMountedInRW(self, path): 120 testfile = path + "/tmp-rw-test" 121 os.system("touch " + testfile) 122 if os.path.exists(testfile): 123 os.system("rm -f " + testfile) 124 return True 125 return False 126 116 127 def showWarning(self): 117 128 self.session.open(MessageBox, _("PLEASE READ!\nNo disk found. An hard drive or an usb pen is HARDLY SUGGESTED. If you still want use your internal flash pay attention to:\n(1) If you don't have enough free space your box may completely block and you need to flash it again\n(2) Many write operations on your internal flash may damage your flash memory"), type = MessageBox.TYPE_ERROR) … … 188 199 self.list.append((_("Show as plugin"), ConfigYesNo(self.config.show_plugin > 0))) 189 200 self.list.append((_("Show as extension"), ConfigYesNo(self.config.show_extension > 0))) 201 self.list.append((_("Show 'Force reload' as plugin"), ConfigYesNo(self.config.show_force_reload_as_plugin > 0))) 190 202 191 203 self["config"].setList(self.list) … … 233 245 self.config.show_plugin = int(self.list[i][1].getValue()) 234 246 self.config.show_extension = int(self.list[i+1][1].getValue()) 247 self.config.show_force_reload_as_plugin = int(self.list[i+2][1].getValue()) 235 248 236 249 if redraw: … … 247 260 248 261 if index == 0: 249 self["information"].setText(_("Drive where you save data.\nThe drive MUST be mounted in rw "))262 self["information"].setText(_("Drive where you save data.\nThe drive MUST be mounted in rw. If you can't see your device here probably is mounted as read only or autofs handle it only in read only mode. In case of mount it manually and try again")) 250 263 elif index == 1: 251 264 self["information"].setText(_("Lamedb used for epg.dat conversion.\nThis option doesn't work with crossepg patch v2")) … … 279 292 self.config.configured = 1 280 293 self.config.save() 294 try: 295 if self.config.db_root[-8:] == "crossepg": 296 config.misc.epgcache_filename.setValue(self.config.db_root[:-9] + "/epg.dat") 297 else: 298 config.misc.epgcache_filename.setValue(self.config.db_root + "/epg.dat") 299 config.misc.epgcache_filename.callNotifiersOnSaveAndCancel = True 300 config.misc.epgcache_filename.save() 301 configfile.save() 302 except Exception, e: 303 print "custom epgcache filename not supported by current enigma2 version" 304 305 if getEPGPatchType() == -1: 306 # exec crossepg_prepare_pre_start for unpatched images 307 os.system(self.config.home_directory + "/crossepg_prepare_pre_start.sh") 308 281 309 if self.show_extension != self.config.show_extension or self.show_plugin != self.config.show_plugin: 282 310 for plugin in plugins.getPlugins(PluginDescriptor.WHERE_PLUGINMENU): -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepglib.py
r7451 r12090 61 61 show_plugin = 1 62 62 show_extension = 1 63 show_force_reload_as_plugin = 0 63 64 last_partial_download_timestamp = 0 64 65 last_full_download_timestamp = 0 … … 127 128 elif key == "show_extension": 128 129 self.show_extension = int(value); 130 elif key == "show_force_reload_as_plugin": 131 self.show_force_reload_as_plugin = int(value); 129 132 elif key == "configured": 130 133 self.configured = int(value); … … 163 166 f.write("show_plugin=%d\n" % (self.show_plugin)) 164 167 f.write("show_extension=%d\n" % (self.show_extension)) 168 f.write("show_force_reload_as_plugin=%d\n" % (self.show_force_reload_as_plugin)) 165 169 f.write("configured=%d\n" % (self.configured)) 166 170 -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/plugin.py
r7451 r12090 10 10 return [] 11 11 12 def call_downloader(session, **kwargs): 13 crossepg_main.downloader(session) 14 15 def call_loaderAsPlugin(session, **kwargs): 16 crossepg_main.loaderAsPlugin(session) 17 18 def call_setup(session, **kwargs): 19 crossepg_main.setup(session) 20 21 def call_autostart(reason, session): 22 crossepg_main.autostart(reason, session) 23 12 24 def Plugins(**kwargs): 13 25 config = CrossEPG_Config() … … 18 30 description=_("An EPG downloader"), 19 31 where = [ PluginDescriptor.WHERE_EXTENSIONSMENU, PluginDescriptor.WHERE_PLUGINMENU ], 20 fnc = c rossepg_main.downloader))32 fnc = call_downloader)) 21 33 elif config.show_extension == 1: 22 34 plugins.append(PluginDescriptor(name="CrossEPG Downloader", 23 35 description=_("An EPG downloader"), 24 36 where = PluginDescriptor.WHERE_EXTENSIONSMENU, 25 fnc = c rossepg_main.downloader))37 fnc = call_downloader)) 26 38 elif config.show_plugin == 1: 27 39 plugins.append(PluginDescriptor(name="CrossEPG Downloader", 28 40 description=_("An EPG downloader"), 29 41 where = PluginDescriptor.WHERE_PLUGINMENU, 30 fnc = c rossepg_main.downloader))42 fnc = call_downloader)) 31 43 32 44 if config.isQBOXHD(): … … 34 46 description=_("CrossEPG setup panel"), 35 47 where = PluginDescriptor.WHERE_PLUGINMENU, 36 fnc = c rossepg_main.setup))48 fnc = call_setup)) 37 49 else: 38 50 plugins.append(PluginDescriptor(name="CrossEPG", … … 44 56 description = _("CrossEPG automatic actions"), 45 57 where = PluginDescriptor.WHERE_SESSIONSTART, 46 fnc = crossepg_main.autostart)) 58 fnc = call_autostart)) 59 60 if config.show_force_reload_as_plugin == 1: 61 plugins.append(PluginDescriptor(name="CrossEPG Force Reload", 62 description=_("CrossEPG Force Reload"), 63 where = PluginDescriptor.WHERE_PLUGINMENU, 64 fnc = call_loaderAsPlugin)) 65 47 66 return plugins; -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/skins/downloader_hd.xml
r7451 r12090 1 1 <screen position="530,590" size="600,70" title="CrossEPG" flags="wfNoBorder"> 2 2 <widget name="background" position="0,0" size="600,80" zPosition="-1" /> 3 <widget name="action" halign="center" valign="center" position="65,10" size="520,20" font="Regular;16" />4 <widget name="status" halign="center" valign="center" position="65,30" size="520,20" font="Regular;16" />3 <widget name="action" halign="center" valign="center" position="65,10" size="520,20" font="Regular;16" transparent="1"/> 4 <widget name="status" halign="center" valign="center" position="65,30" size="520,20" font="Regular;16" transparent="1"/> 5 5 <widget name="progress" position="65,55" size="520,5" borderWidth="1" /> 6 6 </screen> -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/skins/downloader_sd.xml
r7451 r12090 1 1 <screen position="330,450" size="350,70" title="CrossEPG" flags="wfNoBorder"> 2 2 <widget name="background" position="0,0" size="350,80" zPosition="-1" /> 3 <widget name="action" halign="center" valign="center" position="65,10" size="270,20" font="Regular;15" />4 <widget name="status" halign="center" valign="center" position="65,30" size="270,20" font="Regular;15" />3 <widget name="action" halign="center" valign="center" position="65,10" size="270,20" font="Regular;15" transparent="1"/> 4 <widget name="status" halign="center" valign="center" position="65,30" size="270,20" font="Regular;15" transparent="1"/> 5 5 <widget name="progress" position="65,55" size="270,5" borderWidth="1" /> 6 6 </screen> -
ipk/source/epg_crossepg/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/version.py
r7451 r12090 1 version = "0.6. 1 (svn 241)"1 version = "0.6.2)" -
ipk/source/epg_crossepg/usr/lib/python2.6/crossepg.py
r7451 r12090 1 1 # This file was automatically generated by SWIG (http://www.swig.org). 2 # Version 1.3.402 # Version 2.0.4 3 3 # 4 4 # Do not make changes to this file unless you know what you are doing--modify 5 5 # the SWIG interface file instead. 6 # This file is compatible with both classic and new-style classes. 6 7 7 8 8 9 from sys import version_info … … 40 41 method = class_type.__swig_setmethods__.get(name,None) 41 42 if method: return method(self,value) 42 if (not static) or hasattr(self,name):43 if (not static): 43 44 self.__dict__[name] = value 44 45 else: … … 480 481 return _crossepg.epgdb_get_update_time() 481 482 epgdb_get_update_time = _crossepg.epgdb_get_update_time 483 484 def epgdb_get_revision(): 485 return _crossepg.epgdb_get_revision() 486 epgdb_get_revision = _crossepg.epgdb_get_revision 482 487 import os 483 488 import re … … 522 527 return flags & (~0x01) 523 528 524 525 529 # This file is compatible with both classic and new-style classes. 530 531 -
ipk/source/epg_crossepg/var/crossepg/crossepg_epgmove.sh
r7451 r12090 9 9 fi 10 10 11 if [ -f "/etc/enigma2/settings" ] # if enigma2 configuration exist 12 then 13 EPGDAT=`cat /etc/enigma2/settings | grep "config\.misc\.epgcache_filename=" | sed "s/config\.misc\.epgcache_filename=//"` 14 else # else default path 15 EPGDAT="/hdd/epg.dat" 16 fi 17 18 if [ ! -n "$EPGDAT" ] 19 then 20 EPGDAT="/hdd/epg.dat" 21 fi 22 11 23 if [ -f "$DBROOT/ext.epg.dat" ] # try on configuration path 12 24 then 13 25 echo copying ext.epg.dat from $DBROOT 14 $HOME/crossepg_epgcopy "$DBROOT/ext.epg.dat" /hdd/epg.dat26 $HOME/crossepg_epgcopy "$DBROOT/ext.epg.dat" $EPGDAT 15 27 elif [ -f "/hdd/crossepg/ext.epg.dat" ] # if we have a bad path try with default path 16 28 then -
ipk/source/epg_crossepg/var/crossepg/providers/krkadoni_exyu_xmltv.conf
r7451 r12090 1 1 description=Krkadoni ExYu XMLTV 2 2 protocol=xmltv 3 channels =http://www.krkadoni.com/krkadoni.channels.xml.gz4 url=http://krkadoni.com/krkadonixmltv_exyu.gz3 channels_url_0=http://www.krkadoni.com/krkadoni.channels.xml.gz 4 epg_url_0=http://krkadoni.com/krkadonixmltv_exyu.gz 5 5 preferred_language=eng -
ipk/source/epg_crossepg/var/crossepg/providers/linuxsat_exussr_xmltv.conf
r7451 r12090 1 1 description=Linuxsat ExUSSR XMLTV 2 2 protocol=xmltv 3 channels =http://linux-sat.tv/epg/ls.channels.xml.gz4 url=http://linux-sat.tv/epg/tvprogram_ua_ru.gz3 channels_url_0=http://linux-sat.tv/epg/ls.channels.xml.gz 4 epg_url_0=http://linux-sat.tv/epg/tvprogram_ua_ru.gz 5 5 preferred_language=eng
Note: See TracChangeset
for help on using the changeset viewer.