z411 / trackma

Open multi-site list manager for Unix-like systems. (ex-wMAL)
https://z411.github.io/trackma
GNU General Public License v3.0
761 stars 82 forks source link

MAL: fallback to Unknown if media_type not in type_translate #733

Closed wise720 closed 2 months ago

wise720 commented 3 months ago

will prevent crash in cli/qt and infinit loading in gtk if item['media_type'] not in self.type_translate, now it falls back to utils.Type.UNKNOWN. eg. Mahoutsukai Reimeiki PV with the media_type pv which is not a key in type_translate.

Could of cause be also fixed by adding pv to type_translate but then if something else is not in type_translate, it will crash and a new fix would be needed.