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

IndexError: list index out of range #6

Open
ovidiugabriel opened this issue Aug 3, 2018 · 1 comment
Open

IndexError: list index out of range #6

ovidiugabriel opened this issue Aug 3, 2018 · 1 comment

Comments

@ovidiugabriel
Copy link

IndexError: list index out of range

>> $ ./dashproxy.py http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd -o .
Running dash proxy for stream http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd. Output goes in .
mpd=[]
Traceback (most recent call last):
  File "./dashproxy.py", line 289, in <module>
    main()
  File "./dashproxy.py", line 286, in main
    run(args)
  File "./dashproxy.py", line 275, in run
    return proxy.run()
  File "./dashproxy.py", line 115, in run
    self.refresh_mpd()
  File "./dashproxy.py", line 129, in refresh_mpd
    self.handle_mpd(mpd)
  File "./dashproxy.py", line 150, in handle_mpd
    period = periods[0]
IndexError: list index out of range
@radvaz
Copy link

radvaz commented Mar 31, 2021

I had the same kind of errors when tying to download a live streaming content:

Traceback (most recent call last):
File "dashproxy.py", line 289, in
main()
File "dashproxy.py", line 286, in main
run(args)
File "dashproxy.py", line 275, in run
return proxy.run()
File "dashproxy.py", line 115, in run
self.refresh_mpd()
File "dashproxy.py", line 128, in refresh_mpd
mpd = xml.etree.ElementTree.fromstring(r.text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1311, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1657, in feed
self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 116169: ordinal not in range(128)

How could we fix this issue?

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

2 participants