podcats icon indicating copy to clipboard operation
podcats copied to clipboard

py 3.10 bug

Open gudaocode opened this issue 3 years ago • 1 comments
trafficstars

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

gudaocode avatar May 16 '22 01:05 gudaocode

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.

pokulo avatar Sep 14 '24 02:09 pokulo

I think, this issue can be closed unless @gudaocode opposes.

pokulo avatar Oct 22 '24 22:10 pokulo

Thank you for the reply!

gudaocode avatar Dec 13 '24 11:12 gudaocode