diff --git a/src/core/create.py b/src/core/create.py index f9bc95c8..bdc2a873 100644 --- a/src/core/create.py +++ b/src/core/create.py @@ -29,6 +29,10 @@ def close(): pass +def help(): + return "Used to create a new library" + + def library(args): name = "Default" root = "" diff --git a/src/core/load.py b/src/core/load.py index b19a7f81..c75078cf 100644 --- a/src/core/load.py +++ b/src/core/load.py @@ -32,6 +32,10 @@ def close(): pass +def help(): + return "Loads a music file" + + # Called when the plugin needs to perform some action def run(args=None): diff --git a/src/core/lslib.py b/src/core/lslib.py index cfb9e947..0dd610fc 100644 --- a/src/core/lslib.py +++ b/src/core/lslib.py @@ -26,6 +26,10 @@ def close(): pass +def help(): + return "Lists all available libraries" + + # Called when the plugin needs to perform some action def run(args=None): cur = str(settings.get("curlib")) diff --git a/src/core/next.py b/src/core/next.py index 7e465b71..3fe30a32 100644 --- a/src/core/next.py +++ b/src/core/next.py @@ -45,6 +45,10 @@ def close(): pass +def help(): + return "Advances to the next song" + + # Called when the plugin needs to perform some action def run(args=None): if settings.has("curlib") == False: diff --git a/src/core/ocarina.py b/src/core/ocarina.py index e0bbcf91..4a9277bf 100644 --- a/src/core/ocarina.py +++ b/src/core/ocarina.py @@ -25,8 +25,7 @@ from tools import gstreamer settings.set("user", join(settings.get("user"),".ocarina2")) mkdir(settings.get("user")) -#manager.restoresession() -bt.proc.setname("Ocarina2") +settings.set("appname","ocarina") # Called every time the plugin is enabled @@ -41,6 +40,10 @@ def close(): write("Ocarina has been stopped",True) +def help(): + return "A simple music player" + + # Called when the plugin needs to perform some action def run(args=None): pass diff --git a/src/core/pause.py b/src/core/pause.py index d15569ae..2402e48c 100644 --- a/src/core/pause.py +++ b/src/core/pause.py @@ -24,6 +24,10 @@ def close(): pass +def help(): + return "Pauses playback" + + # Called when the plugin needs to perform some action def run(args=None): gstreamer.pause() diff --git a/src/core/play.py b/src/core/play.py index b1bf0928..a1286dd8 100644 --- a/src/core/play.py +++ b/src/core/play.py @@ -25,6 +25,10 @@ def close(): pass +def help(): + return "Begins playback" + + # Called when the plugin needs to perform some action def run(args=None): gstreamer.play() diff --git a/src/core/scan.py b/src/core/scan.py index fe2302a2..8be719e8 100644 --- a/src/core/scan.py +++ b/src/core/scan.py @@ -35,6 +35,9 @@ def close(): pass +def help(): + return "Scans over a directory and attempts to add the music files" + # Performs the actual scanning def scan(dir): files = ls(dir) diff --git a/src/core/switchlib.py b/src/core/switchlib.py index b2e98a52..589b827e 100644 --- a/src/core/switchlib.py +++ b/src/core/switchlib.py @@ -26,6 +26,10 @@ def close(): pass +def help(): + return "Switches between multiple libraries" + + # Called when the plugin needs to perform some action def run(args=None): if args == 0: diff --git a/src/extra/__init__.py b/src/extra/__init__.py index bb4d3239..ad9abe4c 100644 --- a/src/extra/__init__.py +++ b/src/extra/__init__.py @@ -1,2 +1,5 @@ __author__="bjschuma" -__date__ ="$Jan 9, 2010 8:07:29 PM$" \ No newline at end of file +__date__ ="$Jan 9, 2010 8:07:29 PM$" + + +__all__ = ["rand"] \ No newline at end of file diff --git a/src/extra/rand.py b/src/extra/rand.py index 3852c6fa..08bf93a7 100644 --- a/src/extra/rand.py +++ b/src/extra/rand.py @@ -38,6 +38,10 @@ def close(): pass +def help(): + return "Changes next to play a random song" + + # Called when the plugin needs to perform some action def run(args=None): if args==None or len(args)==0: