Skip to content

Commit

Permalink
[MediaScanner] add video scanning support, you can now place a movie …
Browse files Browse the repository at this point in the history
…on a USB device and attach it to box, and you will be ask you want to view the list to be played.
  • Loading branch information
Andy Blackburn committed Jan 2, 2013
1 parent 8c8c240 commit 1620b63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/python/Plugins/Extensions/MediaScanner/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ def movielist_open(list, session, **kwargs):
def filescan(**kwargs):
from Components.Scanner import Scanner, ScanPath
return [
Scanner(mimetypes = ["video/mpeg", "video/MP2T", "video/x-msvideo", "video/mkv"],
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..."),
Expand Down Expand Up @@ -147,6 +148,7 @@ def Plugins(**kwargs):
return [
PluginDescriptor(name="Media scanner", description=_("Scan files..."), where = PluginDescriptor.WHERE_PLUGINMENU, needsRestart = True, fnc=main),
# PluginDescriptor(where = PluginDescriptor.WHERE_MENU, fnc=menuHook),
PluginDescriptor(name=_("Media scanner"), where = PluginDescriptor.WHERE_FILESCAN, needsRestart = False, fnc = filescan),
PluginDescriptor(where = PluginDescriptor.WHERE_SESSIONSTART, needsRestart = True, fnc = sessionstart),
PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, needsRestart = True, fnc = autostart)
]

0 comments on commit 1620b63

Please sign in to comment.