rasguanabana / ytfs

YouTube File System
MIT License
1.1k stars 45 forks source link

Content unplayable with default options #13

Closed rasguanabana closed 9 years ago

rasguanabana commented 9 years ago
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/fuse.py", line 414, in _wrapper
    return func(*args, **kwargs) or 0
  File "/usr/lib64/python3.4/site-packages/fuse.py", line 483, in open
    fi.flags)
  File "/usr/lib64/python3.4/site-packages/fuse.py", line 709, in __call__
    return getattr(self, op)(*args)
  File "/usr/lib64/python3.4/site-packages/ytfs/ytfs.py", line 326, in mod
    return method(self, self.__pathToTuple(path), *args)
  File "/usr/lib64/python3.4/site-packages/ytfs/ytfs.py", line 569, in open
    if yts.obtainInfo(): #FIXME coz it's ugly.
  File "/usr/lib64/python3.4/site-packages/ytfs/stor.py", line 222, in obtainInfo
    full= {(-int(f['height']), f['filesize'], f['url']) for f in info['formats'] if 'DASH' not in f['format']}
  File "/usr/lib64/python3.4/site-packages/ytfs/stor.py", line 222, in <setcomp>
    full= {(-int(f['height']), f['filesize'], f['url']) for f in info['formats'] if 'DASH' not in f['format']}
KeyError: 'height'

It seems to be a bad idea to rely on info provided by youtube-dl as it happens to be inconsistent.