---
#id: nebulance
name: Nebulance
identifier: nbl
description: Nebulance (NBL) is a ratioless private torrent tracker for TV
language: en-us
urls:
  - https://nebulance.io/
privacy: private
protocol: torrent
supports:
  - irc
  - rss
# source: gazelle
settings:
  - name: authkey
    type: secret
    required: true
    label: Auth key
    help: Right click DL on a torrent and get the authkey.

  - name: torrent_pass
    type: secret
    required: true
    label: Torrent pass
    help: Right click DL on a torrent and get the torrent_pass.

irc:
  network: Nebulance
  server: irc.nebulance.io
  port: 6697
  tls: true
  channels:
    - "#nbl-announce"
  announcers:
    - Muffit
  settings:
    - name: nick
      type: text
      required: true
      label: Nick
      help: Bot nick. Eg. user|bot

    - name: auth.account
      type: text
      required: false
      label: NickServ Account
      help: NickServ account. Make sure to group your user and bot.

    - name: auth.password
      type: secret
      required: false
      label: NickServ Password
      help: NickServ password

    - name: invite_command
      type: secret
      default: "Muffit bot #nbl-announce USERNAME IRCKEY"
      required: true
      label: Invite command
      help: Invite auth with Muffit. Replace USERNAME and IRCKEY.

  parse:
    type: single
    lines:
      - tests:
        - line: '[Episodes] The Show - S02E08 [WebRip / x264 / MKV / 720p / HD / VLAD / The.Show.S02E08.Episode.Name.720p.ANPL.WEBRip.AAC2.0.x264-GROUP.mkv] [702.00 MB - Uploader: UPLOADER] - http://nebulance.io/torrents.php?id=000 [Tags: comedy,subtitles,cbs]'
          expect:
            category: Episodes
            title: The Show
            releaseTags: WebRip / x264 / MKV / 720p / HD / VLAD
            torrentName: The.Show.S02E08.Episode.Name.720p.ANPL.WEBRip.AAC2.0.x264-GROUP.mkv
            torrentSize: 702.00 MB
            uploader: UPLOADER
            baseUrl: http://nebulance.io/
            torrentId: "000"
            tags: comedy,subtitles,cbs
        - line: '[Seasons] Other Show - S10 [HDTV / x264 / MKV / MP4 / 480p / SD / BTN / Other.Show.S10.HDTV.x264-GROUP] [5.27 GB - Uploader: UPLOADER] - http://nebulance.io/torrents.php?id=0000 [Tags: comedy,subtitles,cbs]'
          expect:
            category: Seasons
            title: Other Show
            releaseTags: HDTV / x264 / MKV / MP4 / 480p / SD / BTN
            torrentName: Other.Show.S10.HDTV.x264-GROUP
            torrentSize: 5.27 GB
            uploader: UPLOADER
            baseUrl: http://nebulance.io/
            torrentId: "0000"
            tags: comedy,subtitles,cbs
        - line: '[Episode] Late Night with Show Host - 2021-01-20 [WebDl / h264 / MKV / 1080p / HD / Scene / GROUP / talk.show.2021.01.20.famous.person.1080p.web.h264-group.mkv] [2.22 GB - Uploader: Uploader1] - http://nebulance.io/torrents.php?id=000000 [Tags: episode,comedy,talk.show,nbc,autofill,subtitles,webdl,h264,mkv,1080p,hd,scene,group.release]'
          expect:
            category: Episode
            title: Late Night with Show Host
            releaseTags: WebDl / h264 / MKV / 1080p / HD / Scene / GROUP
            torrentName: talk.show.2021.01.20.famous.person.1080p.web.h264-group.mkv
            torrentSize: 2.22 GB
            uploader: Uploader1
            baseUrl: http://nebulance.io/
            torrentId: "000000"
            tags: episode,comedy,talk.show,nbc,autofill,subtitles,webdl,h264,mkv,1080p,hd,scene,group.release
        - line: '[Season] Jeeves & Wooster [MKV / 480p / SD / Jeeves and Wooster - Season 4] [2.06 GB - Uploader: redacted] - https://nebulance.io/torrents.php?id=0000 [Tags: season,comedy,itv1,subtitles,mkv,480p,sd]'
          expect:
            category: Season
            title: Jeeves & Wooster
            releaseTags: MKV / 480p / SD
            torrentName: Jeeves and Wooster - Season 4
            torrentSize: 2.06 GB
            uploader: redacted
            baseUrl: https://nebulance.io/
            torrentId: "0000"
            tags: season,comedy,itv1,subtitles,mkv,480p,sd
        pattern: '\[(.+?)\]\s+(.+?)(?:\s+-\s+(?:S\d{2}E\d{2}|S\d{2}|\d{4}-\d{2}-\d{2}))?\s+\[(.+) \/ (.+)\] \[(.+) - Uploader: (.+)\] - (https?:\/\/.+\/).+id=(\d+) \[Tags: (.*)\]'
        vars:
          - category
          - title
          - releaseTags
          - torrentName
          - torrentSize
          - uploader
          - baseUrl
          - torrentId
          - tags

    match:
      infourl: "/torrents.php?id={{ .torrentId }}"
      torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&authkey={{ .authkey }}&torrent_pass={{ .torrent_pass }}"
