Fixed an error raised when there were attempts to set volume before the URL Player has played something

This commit is contained in:
Manuel Cortez 2019-01-22 16:40:00 -06:00
parent a53a3d595c
commit cbcc6f812a

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
import random import random
import output import output
@ -95,8 +94,7 @@ class audioPlayer(object):
@property @property
def volume(self): def volume(self):
if self.stream != None: return self.vol
return self.vol
@volume.setter @volume.setter
def volume(self, vol): def volume(self, vol):