def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath mediatypes = [ Scanner( mimetypes=[ "video/mpeg", "video/MP2T", "video/x-msvideo", "video/x-matroska" ], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="MediaCenter Movies", description=_("View Movies... (MediaCenter)"), openfnc=filescan_open_video, ), Scanner( mimetypes=[ "audio/mpeg", "audio/x-wav", "application/ogg", "audio/x-flac", "audio/x-matroska" ], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="MediaCenter Music", description=_("Play Music... (MediaCenter)"), openfnc=filescan_open_audio, ) ] return mediatypes
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath mediatypes = [ Scanner( mimetypes=[ "video/mpeg", "video/MP2T", "video/x-msvideo", "video/mkv" ], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="Movie", description=_("View Movies..."), openfnc=movielist_open, ), Scanner( mimetypes=["video/x-vcd"], paths_to_scan=[ ScanPath(path="mpegav", with_subdirs=False), ScanPath(path="MPEGAV", with_subdirs=False), ], name="Video CD", description=_("View Video CD..."), openfnc=filescan_open, ), Scanner( mimetypes=[ "audio/mpeg", "audio/x-wav", "application/ogg", "audio/x-flac" ], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="Music", description=_("Play Music..."), openfnc=filescan_open, ) ] try: from Plugins.Extensions.CDInfo.plugin import Query mediatypes.append( Scanner( mimetypes=["audio/x-cda"], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="Audio-CD", description=_("Play Audio-CD..."), openfnc=audioCD_open, )) return mediatypes except ImportError: return mediatypes
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return [ Scanner( mimetypes=[ "video/mpeg", "video/MP2T", "video/x-msvideo", "video/mkv", "video/avi" ], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ScanPath(path="movie", with_subdirs=False), ], name="Movie", description=_("View Movies..."), openfnc=movielist_open, ), Scanner( mimetypes=["video/x-vcd"], paths_to_scan=[ ScanPath(path="mpegav", with_subdirs=False), ScanPath(path="MPEGAV", with_subdirs=False), ], name="Video CD", description=_("View Video CD..."), openfnc=movielist_open, ), Scanner( mimetypes=[ "audio/mpeg", "audio/x-wav", "application/ogg", "audio/x-flac" ], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="Music", description=_("Play Music..."), openfnc=movielist_open, ), Scanner( mimetypes=["audio/x-cda"], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="Audio-CD", description=_("Play Audio-CD..."), openfnc=movielist_open, ), ]
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return Scanner(mimetypes=['application/x-debian-package'], paths_to_scan=[ ScanPath(path='ipk', with_subdirs=True), ScanPath(path='', with_subdirs=False) ], name='Ipkg', description=_('Install extensions.'), openfnc=filescan_open)
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return Scanner(mimetypes=["application/x-debian-package"], paths_to_scan=[ ScanPath(path="ipk", with_subdirs=True), ScanPath(path="", with_subdirs=False), ], name="Ipkg", description=_("Install extensions."), openfnc=filescan_open)
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return \ Scanner(mimetypes=["application/x-dream-image"], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="NFI", description =(_("Download .NFI-files for USB-flasher") + "..."), openfnc=filescan_open, )
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return Scanner(mimetypes=['application/x-dream-package'], paths_to_scan=[ ScanPath(path='dmpkg', with_subdirs=True), ScanPath(path='', with_subdirs=False) ], name='Dream-Package', description=_('Install settings, skins, software...'), openfnc=filescan_open)
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return [ Scanner(mimetypes = ["video/mpeg", "video/mp2t", "video/x-msvideo", "video/mkv", "video/x-ms-wmv", "video/x-matroska", "video/ogg", "video/dvd", "video/mp4", "video/avi", "video/divx", "video/x-mpeg", "video/x-flv", "video/quicktime", "video/x-ms-asf", "video/3gpp", "video/3gpp2", "application/vnd.rn-realmedia", "application/vnd.rn-realmedia-vbr", "video/mts"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ScanPath(path = "PRIVATE/AVCHD/BDMV/STREAM", with_subdirs = False), ], name = "Movie", description = _("Watch movies..."), openfnc = movielist_open, ), Scanner(mimetypes = ["video/x-vcd"], paths_to_scan = [ ScanPath(path = "mpegav", with_subdirs = False), ScanPath(path = "MPEGAV", with_subdirs = False), ], name = "Video CD", description = _("View video CD..."), openfnc = filescan_open, ), Scanner(mimetypes = ["audio/mpeg", "audio/x-wav", "audio/dts", "audio/ogg", "audio/flac", "audio/mp4", "audio/x-ms-wma", "audio/ac3", "audio/x-matroska", "audio/x-aac", "audio/x-monkeys-audio"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ], name = "Music", description = _("Play music..."), openfnc = filescan_open, ), Scanner(mimetypes = ["audio/x-cda"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ], name = "Audio-CD", description = _("Play audio-CD..."), openfnc = audioCD_open, ), ]
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return \ Scanner(mimetypes=["application/x-dream-package"], paths_to_scan=[ ScanPath(path="dmpkg", with_subdirs=True), ScanPath(path="", with_subdirs=False), ], name="Dream-Package", description=_("Install settings, skins, software..."), openfnc=filescan_open, )
def start_from_filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return \ Scanner(mimetypes=None, paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name=pname, description=pdesc, openfnc=filescan_open, )
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return [ Scanner( mimetypes=("application/x-bittorrent", ), paths_to_scan=(ScanPath(path="", with_subdirs=False), ), name="BitTorrrent Download", description=_("Download torrent..."), openfnc=filescan_open, ) ]
def start_from_filescan(**kwargs): from Components.Scanner import Scanner, ScanPath print "start_from_filescan", kwargs return \ Scanner(mimetypes=["image/jpeg", "image/mvi"], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="Logo Manager", description="view Bootlogo/MVI", openfnc=filescan_open, )
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return [ Scanner(mimetypes = ["video/x-bluray"], paths_to_scan = [ ScanPath(path = "BDMV", with_subdirs = False), ], name = "Bludisc", description = _("Play Bludisc"), openfnc = filescan_open, )]
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath mediatypes = [ Scanner(mimetypes=["video/divx3", "video/divx4", "video/divx5"], paths_to_scan=[ ScanPath(path="", with_subdirs=False), ], name="DivX Movie", description="View DivX Movies...", openfnc=filescan_open, )] return mediatypes
def startFilescan(**kwargs): from Components.Scanner import Scanner, ScanPath if not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/OpenMultiboot/.autoscan'): return [] return \ Scanner(mimetypes=["application/zip"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ], name = "Open Multiboot", description = _("Add zip archive with image in 'open-multiboot-upload'"), openfnc = filescanOpen, )
def filescan(**kwargs): from Components.Scanner import Scanner, ScanPath return [ Scanner(mimetypes = ["video/mpeg", "video/MP2T", "video/x-msvideo", "video/mkv", "video/avi"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ScanPath(path = "movie", with_subdirs = False), ], name = "Movie", description = _("View Movies..."), openfnc = movielist_open, ), Scanner(mimetypes = ["video/x-vcd"], paths_to_scan = [ ScanPath(path = "mpegav", with_subdirs = False), ScanPath(path = "MPEGAV", with_subdirs = False), ], name = "Video CD", description = _("View Video CD..."), openfnc = movielist_open, ), Scanner(mimetypes = ["audio/mpeg", "audio/x-wav", "application/ogg", "audio/x-flac"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ], name = "Music", description = _("Play Music..."), openfnc = movielist_open, ), Scanner(mimetypes = ["audio/x-cda"], paths_to_scan = [ ScanPath(path = "", with_subdirs = False), ], name = "Audio-CD", description = _("Play Audio-CD..."), openfnc = movielist_open, ), Scanner(mimetypes = ["application/cccam"], paths_to_scan = [ ScanPath(path = "updatesoftcam", with_subdirs = False), ], name = "CCcam Config File", description = _("Install CCcam Config Files..."), openfnc = InstallSoftCamConfigFiles, ), Scanner(mimetypes = ["application/mgcamd", "application/mgnewcamd", "application/mgcccamd"], paths_to_scan = [ ScanPath(path = "updatesoftcam", with_subdirs = False), ], name = "Mgcamd Config File", description = _("Install MGCamd Config Files..."), openfnc = InstallSoftCamConfigFiles, ), Scanner(mimetypes = ["application/oscam"], paths_to_scan = [ ScanPath(path = "updatesoftcam", with_subdirs = False), ], name = "OScam Config File", description = _("Install OSCam Config Files..."), openfnc = InstallSoftCamConfigFiles, ), Scanner(mimetypes = ["application/wicardd"], paths_to_scan = [ ScanPath(path = "updatesoftcam", with_subdirs = False), ], name = "Wicardd Config File", description = _("Install Wicardd Config Files..."), openfnc = InstallSoftCamConfigFiles, ), Scanner(mimetypes = ["application/channellist"], paths_to_scan = [ ScanPath(path = "updatechannels", with_subdirs = False), ], name = "Enigma2 Channel List", description = _("Install Channel List..."), openfnc = channellist_open, ), Scanner(mimetypes = ["application/softcams"], paths_to_scan = [ ScanPath(path = "emu", with_subdirs = False), ], name = "Enigma2 Softcam List", description = _("Use Softcams from USB ..."), openfnc = Softcamlist_open, ), ]