Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 194.7.114.2:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/DocumentationPage_2fPluginInfo

------------------------------------------------------------------------------
@@ -2,36 +2,7 @@
 
 = Writing your own plugins =
 
-It is quite simple to write your own plugins take a look at the code example 
below. If that didn't scare you away... try looking at some of the code in 
src/plugins or src/(video|audio|image|games)/plugins and before you blow it you 
are writing the next fabulous Freevo plugin :-)
-
-Freevo has right now has support for special item plugins (more types of 
plugins will follow)
-
-== Item plugins ==
-
-You can put your plugins in src/(video|audio|image|games)/plugins to activate 
the plugin. The interface to freevo needs to be the global function actions 
with the item as parameter. The function returns a list of possible actions for 
this item (or an empty list). Each action item is a pair function/description. 
You can access the function from within the item menu (pressing ENTER not 
SELECT on the item).
-
-This example plugin will add "move to [seen]" and "delete item" to all video 
item in the directory /home/dmeyer/video/incoming and is placed in 
src/freevo/video/plugins
-
-{{{
-import os
-
-def actions(item):
-    if item.mode == 'file' and item.parent.type == 'dir' and \
-       item.parent.dir == '/home/dmeyer/video/incoming':
-        return [ (move_to_seen, 'Move to [seen]'), (delete_from_dir, 'Delete 
item') ]
-    return []
-
-def move_to_seen(arg=None, menuw=None):
-    item = arg
-    os.system('mv "%s" /home/dmeyer/video/seen' % item.filename)
-    menuw.delete_menu(arg, menuw)
-
-def delete_from_dir(arg=None, menuw=None):
-    item = arg
-    os.system('rm "%s"' % item.filename)
-    menuw.delete_menu(arg, menuw)
-}}}
-
+Moved to the new wiki : 
http://freevo.sourceforge.net/cgi-bin/doc/Plugins#head-de13bed092a2704b4ee63a584a871cfaba7c3f1b
 
 = Plugin User documentation =
 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-wikilog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog

Reply via email to