Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'groups' #2

Closed
ghost opened this issue Mar 16, 2020 · 2 comments
Closed

AttributeError: 'NoneType' object has no attribute 'groups' #2

ghost opened this issue Mar 16, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 16, 2020

root@vultr:~/abc_dl# ./abc_dl.py http://www.abc.net.au/triplej/programs/friday-night-shuffle/friday-night-shuffle/12036808 2020-03-16 14:01:06,146 - __main__ - INFO - Temporary working directory is: /tmp/triplej_dl/kbmqNEQA Traceback (most recent call last): File "./abc_dl.py", line 167, in <module> main(**args) File "./abc_dl.py", line 92, in main download_urls = get_download_urls(url) File "./abc_dl.py", line 60, in get_download_urls playlist_url = re.search('.*(http://.*m3u8).*', r.text).groups()[0] AttributeError: 'NoneType' object has no attribute 'groups'

@ghost
Copy link
Author

ghost commented Mar 16, 2020

Receiving the above when downloading using a URL - show stream string works fine though.

@ehoppmann
Copy link
Owner

It looks like they changed their CDN from http to https, I changed the regex pattern to match either so it should work now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant