unidown.plugin.link_item_dict¶
Classes
LinkItem dictionary, acts as a wrapper for special methods and functions. |
- class LinkItemDict[source]¶
Bases:
dict
LinkItem dictionary, acts as a wrapper for special methods and functions.
- actualize(new_data, log=None)[source]¶
Actualize dictionary like ~dict.update does. If a logger is passed it will log updated items, not new one.
- Parameters
new_data (
LinkItemDict
) – Data used for updating.
- Return type
- static get_new_items(old_data, new_data, disable_tqdm=False)[source]¶
Get the new items which are not existing or are newer as in the old data set.
- Parameters
old_data (
LinkItemDict
) – Old data.new_data (
LinkItemDict
) – New data.disable_tqdm (
bool
) – Disable tqdm progressbar.
- Return type
- Returns
New and updated link items.