pyflakes cleaning
This commit is contained in:
parent
4d3d3b5de1
commit
e90d453b1a
3 changed files with 4 additions and 5 deletions
|
|
@ -16,7 +16,7 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from weboob.capabilities.radio import ICapRadio, Radio, Stream
|
from weboob.capabilities.radio import ICapRadio, Radio
|
||||||
from weboob.tools.backend import BaseBackend
|
from weboob.tools.backend import BaseBackend
|
||||||
from .browser import NihonNoOtoBrowser
|
from .browser import NihonNoOtoBrowser
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@ class NihonNoOtoBackend(BaseBackend, ICapRadio):
|
||||||
if pattern.lower() in radio.title.lower() or pattern.lower() in radio.description.lower():
|
if pattern.lower() in radio.title.lower() or pattern.lower() in radio.description.lower():
|
||||||
self.browser.get_current_emission()
|
self.browser.get_current_emission()
|
||||||
radio.current = self.browser.get_current_emission()
|
radio.current = self.browser.get_current_emission()
|
||||||
|
|
||||||
yield radio
|
yield radio
|
||||||
|
|
||||||
def get_radio(self, radio):
|
def get_radio(self, radio):
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class LivePage(BasePage):
|
||||||
radio.streams = []
|
radio.streams = []
|
||||||
|
|
||||||
index = -1
|
index = -1
|
||||||
|
|
||||||
for el in self.document.xpath('//source'):
|
for el in self.document.xpath('//source'):
|
||||||
index += 1
|
index += 1
|
||||||
mime_type = el.attrib['type']
|
mime_type = el.attrib['type']
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,11 @@
|
||||||
|
|
||||||
|
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
from weboob.capabilities.radio import Radio
|
|
||||||
|
|
||||||
|
|
||||||
class NihonNoOtoTest(BackendTest):
|
class NihonNoOtoTest(BackendTest):
|
||||||
BACKEND = 'nihonnooto'
|
BACKEND = 'nihonnooto'
|
||||||
|
|
||||||
def test_nihonnooto(self):
|
def test_nihonnooto(self):
|
||||||
l = list(self.backend.iter_radios_search('')
|
l = list(self.backend.iter_radios_search(''))
|
||||||
self.assertTrue(len(l) > 0)
|
self.assertTrue(len(l) > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue