Universal Downloader
latest
  • User Guide
  • Changelog
  • Writing plugins
  • Development
  • Internals
    • unidown
      • unidown.core
      • unidown.main
      • unidown.meta
      • unidown.plugin
        • unidown.plugin.a_plugin
        • unidown.plugin.exceptions
        • unidown.plugin.link_item
        • unidown.plugin.link_item_dict
        • unidown.plugin.plugin_info
        • unidown.plugin.savestate
      • unidown.tools
Universal Downloader
  • »
  • Internals »
  • unidown »
  • unidown.plugin »
  • unidown.plugin.link_item_dict
  • Edit on GitHub

unidown.plugin.link_item_dict¶

Classes

LinkItemDict

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.

  • log (Optional[Logger]) – Logger.

Return type

None

clean_up_names()[source]¶

Rename duplicated names with an additional _r.

Return type

None

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

LinkItemDict

Returns

New and updated link items.

Previous Next

© Copyright 2015-present, Iceflower S. Revision 3b9d01a9.

Built with Sphinx using a theme provided by Read the Docs.