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

[Bug] npo.nl live videostreams stopped working #4830

Closed
Reino17 opened this issue Jan 31, 2015 · 7 comments
Closed

[Bug] npo.nl live videostreams stopped working #4830

Reino17 opened this issue Jan 31, 2015 · 7 comments

Comments

@Reino17
Copy link

@Reino17 Reino17 commented Jan 31, 2015

youtube-dl.exe -vF http://www.npo.nl/live/npo-1
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-vF', 'http://www.npo.nl/live/npo-1']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2015.01.30.2
[debug] Python version 2.7.8 - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-65810-g1b5ec6a
[debug] Proxy map: {}
[npo.nl:live] npo-1: Downloading webpage
[npo.nl:live] npo-1: Downloading JSON metadata
[npo.nl:live] npo-1: Downloading token
[npo.nl:live] npo-1: Downloading hds JSON
[npo.nl:live] npo-1: Downloading hds URL
[npo.nl:live] npo-1: Downloading f4m manifest
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 382, in main
  File "youtube_dl\__init__.pyo", line 372, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1349, in download
  File "youtube_dl\YoutubeDL.pyo", line 618, in extract_info
  File "youtube_dl\extractor\common.pyo", line 266, in extract
  File "youtube_dl\extractor\npo.pyo", line 227, in _real_extract
  File "youtube_dl\extractor\common.pyo", line 779, in _extract_f4m_formats
TypeError: coercing to Unicode: need string or buffer, NoneType found
@rrooij
Copy link
Contributor

@rrooij rrooij commented Feb 5, 2015

Can confirm this on Linux:

youtube-dl -vF http://www.npo.nl/live/npo-1            
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-vF', 'http://www.npo.nl/live/npo-1']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.03
[debug] Python version 3.4.2 - Linux-3.18.5-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.5.3, ffprobe 2.5.3, rtmpdump 2.4
[debug] Proxy map: {}
[npo.nl:live] npo-1: Downloading webpage
[npo.nl:live] npo-1: Downloading JSON metadata
[npo.nl:live] npo-1: Downloading token
[npo.nl:live] npo-1: Downloading hds JSON
[npo.nl:live] npo-1: Downloading hds URL
[npo.nl:live] npo-1: Downloading f4m manifest
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 9, in <module>
    load_entry_point('youtube-dl==2015.2.3', 'console_scripts', 'youtube-dl')()
  File "/usr/lib/python3.4/site-packages/youtube_dl/__init__.py", line 382, in main
    _real_main(argv)
  File "/usr/lib/python3.4/site-packages/youtube_dl/__init__.py", line 372, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1350, in download
    res = self.extract_info(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 619, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 267, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/npo.py", line 227, in _real_extract
    f4m_formats = self._extract_f4m_formats(stream_url, display_id)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 780, in _extract_f4m_formats
    manifest_url = '/'.join(manifest_url.split('/')[:-1]) + '/' + media_el.attrib.get('href')
TypeError: Can't convert 'NoneType' object to str implicitly
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 5, 2015

Could you post *.dump files when running with --write-pages?

@rrooij
Copy link
Contributor

@rrooij rrooij commented Feb 5, 2015

@dstftw Sure!

Can I post them here as comment or should I upload them on pastebin for the convenience?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 5, 2015

@robin007bond, whichever you like, but don't forget to wrap it in if you post right here.

@dstftw dstftw closed this in 3900eec Feb 5, 2015
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 5, 2015

Thanks. This will be fixed in the next version.

@Reino17
Copy link
Author

@Reino17 Reino17 commented Feb 6, 2015

Fix confirmed. Thanks a lot, dstftw!

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.