add file

This information was generated by running pytuber add file --help from the command line.

Usage: pytuber add file [OPTIONS] FILE

  Import a playlist from a text file.

Options:
  --format [txt|m3u|xspf|jspf]
  --title TEXT                  title
  --help                        Show this message and exit.

Format: txt

  • Add one line per track, make sure it doesn’t start with a number sign #

  • Separate the track artist and title with a single dash -

Queen - Bohemian rhapsody
Queen - I want to break free

Format: m3u

The parser looks for #EXTINF directives with track information of the extended m3u.

#EXTINF:123, Queen - Bohemian Rhapsody
#EXTINF:123,Queen - I want to break free

Format: xspf

XML Shareable Playlist supported track tag structure

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
    <trackList>
        <track>
            <creator>Queen</creator>
            <title>Bohemian Rhapsody</title>
        </track>
        <track>
            <creator>Queen</creator>
            <title>I want to break free</title>
        </track>
    </trackList>
</playlist>

Format: jspf

JSON Shareable Playlist supported track tag structure

{
  "playlist": {
    "track": [
      {
        "title": "Bohemian Rhapsody",
        "creator": "Queen"
      },
      {
        "title": "I want to break free",
        "creator": "Queen"
      }
    ]
  }
}