question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ITV :: AttributeError: 'NoneType' object has no attribute 'endswith'

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gravyboatcommented, Feb 19, 2020

@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.

1reaction
gravyboatcommented, Feb 18, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found