X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fplugin%2Fplaylists.py;h=a50065c0b7e3f2d3e4143de5a8772578c01a7f5b;hp=ccd5020ab09b8698a194d4423aac851730e77525;hb=fd155ef5b2366994f69252c7cd49d46186b62af0;hpb=7c52f54a7fc8654bc6783ff815c93166b917faf5 diff --git a/hooke/plugin/playlists.py b/hooke/plugin/playlists.py index ccd5020..a50065c 100644 --- a/hooke/plugin/playlists.py +++ b/hooke/plugin/playlists.py @@ -1,20 +1,19 @@ -# Copyright (C) 2010 W. Trevor King +# Copyright (C) 2010-2012 W. Trevor King # # This file is part of Hooke. # -# Hooke is free software: you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. +# Hooke is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. # -# Hooke is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General -# Public License for more details. +# Hooke is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. # -# You should have received a copy of the GNU Lesser General Public -# License along with Hooke. If not, see -# . +# You should have received a copy of the GNU Lesser General Public License +# along with Hooke. If not, see . """The ``playlists`` module provides :class:`PlaylistsPlugin` and several associated :class:`hooke.command.Command`\s for handling @@ -119,7 +118,5 @@ Default filename for future saves. drivers=hooke.drivers, path=params['file'], ) - playlist_names = [playlist.name for playlist in hooke.playlists] - if p.name in playlist_names or p.name == None: - p.name = params['output playlist'] # HACK: override input name. How to tell if it is callback-generated? - hooke.playlists.append(p) + self._set_playlist(hooke, params, p) + outqueue.put(p)