decibel-audio-player:rebuild

This commit is contained in:
Rmys
2018-02-27 00:36:42 +03:00
parent 919f550a3b
commit a8dbc5cbd3
4 changed files with 70 additions and 0 deletions
@@ -0,0 +1,18 @@
#!/usr/bin/env sh
# Author: Ingelrest François (Francois.Ingelrest@gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
python /usr/share/decibel-audio-player/src/decibel-audio-player.py "$@" &
@@ -0,0 +1,22 @@
Index: decibel-audio-player-1.08/src/modules/Covers.py
===================================================================
--- decibel-audio-player-1.08.orig/src/modules/Covers.py
+++ decibel-audio-player-1.08/src/modules/Covers.py
@@ -124,7 +124,7 @@ class Covers(modules.ThreadedModule):
def generateFullSizeCover(self, inFile, outFile, format):
""" Resize inFile if needed, and write it to outFile (outFile and inFile may be equal) """
- import Image
+ from PIL import Image
try:
# Open the image
@@ -144,7 +144,7 @@ class Covers(modules.ThreadedModule):
def generateThumbnail(self, inFile, outFile, format):
""" Generate a thumbnail from inFile (e.g., resize it) and write it to outFile (outFile and inFile may be equal) """
- import Image
+ from PIL import Image
try:
# Open the image
@@ -0,0 +1,18 @@
#!/usr/bin/env sh
# Author: Ingelrest François (Francois.Ingelrest@gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
python /usr/share/decibel-audio-player/src/remote.py "$@"