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
  • Edit on GitHub

unidown.plugin.link_item¶

Classes

LinkItem(name, time)

Item which represents the data, who need to be downloaded.

class LinkItem(name, time)[source]¶

Bases: object

Item which represents the data, who need to be downloaded. Has a name and an update time.

Parameters
  • name (str) – name

  • time (datetime) – update time

Raises
  • ValueError – name cannot be empty or None

  • ValueError – time cannot be empty or None

classmethod from_json(data)[source]¶

Construct from json dict.

Parameters

data (dict) – Json data as dict.

Return type

LinkItem

Returns

LinkItem.

Raises

ValueError – Missing parameter.

to_json()[source]¶

Create json data.

Return type

dict

Returns

Json dictionary.

TIME_FORMAT: str = '%Y%m%dT%H%M%S.%fZ'¶

Time format to use.

_name: str¶

Name of the item.

_time: datetime¶

Time of the item.

property name: str¶

Plain getter.

Return type

str

property time: datetime¶

Plain getter.

Return type

datetime

Previous Next

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

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