Open gudaocode opened 2 years ago
This has likely be fixed in PR #29 with commit 1cc3e04caf2746276b263506d478cb18d0bd418e by ensuring self.tags
is always a dict. Not related to the python version. mutagen
can apparently also return None
instead of a dict.
I think, this issue can be closed unless @gudaocode opposes.
Traceback (most recent call last): File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\Scripts\podcats.exe__main.py", line 7, in
File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\site-packages\podcats__init__.py", line 283, in main
text_to_xml(channel.as_xml() , xmlpath)
File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\site-packages\podcats__init.py", line 230, in as_xml
items=u''.join(episode.as_xml() for episode in sorted(self))
File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\site-packages\podcats\init.py", line 69, in lt
return self.date < other.date
File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\site-packages\podcats\init__.py", line 146, in date
dt = self.get_tag('date')
File "C:\Users\jinqi\AppData\Local\Programs\Python\Python310\lib\site-packages\podcats\ init__.py", line 112, in get_tag
return self.tags[name][0]
TypeError: 'NoneType' object is not subscriptable