File: forcewrite.py

package info (click to toggle)
quodlibet-plugins 20080601-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 352 kB
  • ctags: 725
  • sloc: python: 4,001; makefile: 23; sh: 11
file content (20 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2005 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
#
# $Id: forcewrite.py 3644 2006-07-16 23:11:24Z piman $

from plugins.songsmenu import SongsMenuPlugin

class ForceWrite(SongsMenuPlugin):
    PLUGIN_ID = "Force Write"
    PLUGIN_NAME = _("Force Write")
    PLUGIN_DESC = _("Save the files again. This will make sure play counts "
                    "and ratings are up-to-date.")
    PLUGIN_ICON = 'gtk-save'
    PLUGIN_VERSION = "0.14"

    def plugin_song(self, song):
        song._needs_write = True