From 1e2225ba93603a17004464201ac9bbb6d3ebd829 Mon Sep 17 00:00:00 2001 From: everdrone Date: Mon, 20 Sep 2021 09:49:28 +0200 Subject: [PATCH] Fix background image selector --- nts/downloader.py | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nts/downloader.py b/nts/downloader.py index 8e48dbd..4874d07 100755 --- a/nts/downloader.py +++ b/nts/downloader.py @@ -15,7 +15,7 @@ from mutagen.mp4 import MP4 -__version__ = '1.1.8' +__version__ = '1.1.9' # defaults to darwin @@ -110,7 +110,8 @@ def parse_nts_data(bs): else: station = station.strip() - bg_tag = bs.select('section#bg[style]') + # bg_tag = bs.select('section#bg[style]') + bg_tag = bs.select('section.background-image.visible-desktop[style]') background_image_regex = r'background-image:url\((.*)\)' image_url = re.match(background_image_regex, bg_tag[0]['style']).groups()[0] diff --git a/setup.py b/setup.py index 9b001d3..c2fb3d6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setuptools.setup( name="nts-everdrone", - version="1.1.8", + version="1.1.9", author="Giorgio Tropiano", author_email="giorgiotropiano@gmail.com", description="NTS Radio downloader tool",