Closed lumiru closed 6 months ago
lolwut? Maybe a title what it actually does or some description would help. ;-D I'll read through that tomorrow.
lolwut? Maybe a title what it actually does or some description would help. ;-D I'll read through that tomorrow.
I add explanations. The main purpose is the first bullet point, the next ones are mainly splitted functions to encourage homogeneous behaviour.
Thank you! So much easier to understand what it is supposed to do without studying the (large amount) of changes. :)
The reason for the code duplication is that these parts in the version for the old api were very different in what data they have put into the list. I improved on that a lot by using the DTOs already, but didn't find the time yet to make things even more nicer. So that's a good idea to do it, while it's not an easy task - pagination, callbacks, ... :)
Looks good to me so far.
I've cleaned it up, fixed the return types and commented out the args.thumb
and args.fanart
in controller.py
, as we no longer have those in the args as of #21
add_items_to_view
fromcontroller.py
toutils.py
.get_data_from_object_ids
). The "playhead" is refilled later by wrapping function.get_object_data_from_dict
orget_raw_panel_from_dict
) to encourage homogeneous behaviours.create_media_info_from_objects_data
to permit usage of its info outside of a shown XBMC list item.