Skip to content

Commit 1e2225b

Browse files
committed
Fix background image selector
1 parent 6e32586 commit 1e2225b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

nts/downloader.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from mutagen.mp4 import MP4
1616

1717

18-
__version__ = '1.1.8'
18+
__version__ = '1.1.9'
1919

2020

2121
# defaults to darwin
@@ -110,7 +110,8 @@ def parse_nts_data(bs):
110110
else:
111111
station = station.strip()
112112

113-
bg_tag = bs.select('section#bg[style]')
113+
# bg_tag = bs.select('section#bg[style]')
114+
bg_tag = bs.select('section.background-image.visible-desktop[style]')
114115
background_image_regex = r'background-image:url\((.*)\)'
115116
image_url = re.match(background_image_regex,
116117
bg_tag[0]['style']).groups()[0]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setuptools.setup(
44
name="nts-everdrone",
5-
version="1.1.8",
5+
version="1.1.9",
66
author="Giorgio Tropiano",
77
author_email="giorgiotropiano@gmail.com",
88
description="NTS Radio downloader tool",

0 commit comments

Comments
 (0)