ITV :: AttributeError: 'NoneType' object has no attribute 'endswith'
See original GitHub issueBug Report
- This is a bug report and I have read the contribution guidelines.
Description
Recently ITV plugin has started throwing an error.
Expected / Actual behavior
Correct stream handle.
Reproduction steps / Explicit stream URLs to test
streamlink https://www.itv.com/hub/ibiza-weekender/2a3296a0039
Log output
# /opt/streamlink.git/bin/streamlink https://www.itv.com/hub/im-a-celebrity-get-me-out-of-here/1a7103a0246
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin itvplayer for URL https://www.itv.com/hub/im-a-celebrity-get-me-out-of-here/1a7103a0246
Traceback (most recent call last):
File "/opt/streamlink.git/bin/streamlink", line 11, in <module>
load_entry_point('streamlink==1.3.0+1.g11370e5', 'console_scripts', 'streamlink')()
File "/opt/streamlink.git/lib/python3.4/site-packages/streamlink-1.3.0+1.g11370e5-py3.4.egg/streamlink_cli/main.py", line 1038, in main
handle_url()
File "/opt/streamlink.git/lib/python3.4/site-packages/streamlink-1.3.0+1.g11370e5-py3.4.egg/streamlink_cli/main.py", line 578, in handle_url
streams = fetch_streams(plugin)
File "/opt/streamlink.git/lib/python3.4/site-packages/streamlink-1.3.0+1.g11370e5-py3.4.egg/streamlink_cli/main.py", line 458, in fetch_streams
sorting_excludes=args.stream_sorting_excludes)
File "/opt/streamlink.git/lib/python3.4/site-packages/streamlink-1.3.0+1.g11370e5-py3.4.egg/streamlink/plugin/plugin.py", line 317, in streams
ostreams = self._get_streams()
File "/opt/streamlink.git/lib/python3.4/site-packages/streamlink-1.3.0+1.g11370e5-py3.4.egg/streamlink/plugins/itvplayer.py", line 95, in _get_streams
if video_info_url.endswith(".xml"):
AttributeError: 'NoneType' object has no attribute 'endswith'
Additional comments, screenshots, etc.
# /opt/streamlink.git/bin/streamlink -V
streamlink 1.3.0+1.g11370e5
# /opt/streamlink.git/bin/python -V
Python 3.4.10
Love Streamlink? Please consider supporting our collective. Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
AttributeError: 'NoneType' object has no attribute 'endswith'
1 Answer 1 · The problem is in the last but one entry: either params.dir or params.file is None , not the last...
Read more >AttributeError: NoneType object has no attribute 'endswith'
The Python "AttributeError: 'NoneType' object has no attribute 'endswith'" occurs when we try to call the endswith() method on a None value, ...
Read more >'NoneType' object has no attribute 'endswith' " trying to say?
You're trying to use the .endswith() method on a None type object, which means the object you're trying to use it on probably...
Read more >AttributeError: 'NoneType' object has no attribute 'shape'
My data is organised as: train:- containing folder for each class valid :- containing folder for each class test:- contains all test images ......
Read more >AttributeError: 'NoneType' object has no attribute 'endswith'
... exception=AttributeError("'NoneType' object has no attribute 'endswith'")> Traceback (most recent call last): File ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mkbloke Yeah it’s unfortunate but DRM is just such a headache to deal with it’s not tenable for us. Thanks for being understanding.
@mkbloke Yep if this is the case we’ll have to deprecate it. We’ve taken the stance that we are not going to try and deal with or circumvent DRM.