Skip to content

Commit

Permalink
Fix background image selector
Browse files Browse the repository at this point in the history
  • Loading branch information
everdrone committed Sep 20, 2021
1 parent 6e32586 commit 1e2225b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nts/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from mutagen.mp4 import MP4


__version__ = '1.1.8'
__version__ = '1.1.9'


# defaults to darwin
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1e2225b

Please sign in to comment.