xspf_lib.Link¶

class xspf_lib.Link(rel: str, content: str = '')¶

Object representation of link element.

The link element allows XSPF to be extended without the use of XML namespaces.

Parameters:
  • rel (URI) – URI of resource type.

  • content (URI) – URI of resource.

__init__(rel: str, content: str = '') → None¶

Methods

__init__(rel[, content])

parse_from_xml_element(element)

Parse xml.etree.ElementTree.Element to data model

to_xml_element()

Convert data model to xml.etree.ElementTree.Element

Attributes

content

URI of resource.

rel

URI of resource type.

xspf-lib

Navigation

Contents:

  • Usage
  • Reference
    • xspf_lib
    • xspf_lib.Playlist
    • xspf_lib.Playlist.parse
    • xspf_lib.Playlist.write
    • xspf_lib.Playlist.xml_string
    • xspf_lib.Track
    • xspf_lib.Extension
    • xspf_lib.Link
    • xspf_lib.Meta
    • xspf_lib.Attribution

Related Topics

  • Documentation overview
    • Reference
      • Previous: xspf_lib.Extension
      • Next: xspf_lib.Meta

Quick search

©2023, Dzmitry Izaitka. | Powered by Sphinx 5.3.0 & Alabaster 0.7.13 | Page source