Skip to content

sources

euzu edited this page Dec 6, 2023 · 1 revision

source.yml

An example source file looks like:

templates:
  - name: DE_CHAN
    value: Group ~ "^.DE.*"
  - name: FR_CHAN
    value: Group ~ "^.FR.*"
  - name: ALL_CHAN
    value: >-
      !DE_CHAN! OR
      !FR_CHAN!
sources:
  - inputs:
      - enabled: true
        type: xtream
        headers:
          User-Agent: "Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)Version/2.3 TV Safari/538.1"
          Accept: application/json
          Accept-Encoding: gzip
        url: 'http://localhost:8080'
        username: test
        password: test
    targets:
      - name: pl1
        filename: playlist_1.m3u
        type: m3u
        filter: '!ALL_CHAN!'
        options: { ignore_logo: true }
        rename:
          - { field: group, new_name: 1. DE$1, pattern: ^DE(.*) }
        sort:
          groups:
            order: asc
        mapping:
          - France TNT
          - France Premium
          - Belgique
          - Suisse
          - Canada
        watch:
          - 'FR - Movies'
      - name: plxtream
        filename: playlist_1
        type: xtream
        filter: '!FR_CHAN!'
        options: { ignore_logo: true, xtream_skip_live_direct_source: true, , xtream_skip_video_direct_source: true, }
        rename:
          - { field: group, new_name: 1. DE$1, pattern: ^DE(.*) }
        sort:
          groups:
            order: asc
        mapping:
          - France TNT
          - France Premium
          - Belgique
          - Suisse
          - Canada
        watch:
          - 'FR - Movies'
      - filename: playlist_strm
        type: strm
        filter: 'Group ~ "^tv-shows.*"'
        options: { ignore_logo: true, cleanup: true, underscore_whitespace: false, kodi_style: true }
        rename:
          - { field: group, new_name: 1. FR$1, pattern: ^FR(.*) }
        sort:
          groups:
            order: asc
Clone this wiki locally