buildarr / buildarr-sonarr

Sonarr PVR plugin for Buildarr
https://buildarr.github.io/plugins/sonarr
GNU General Public License v3.0
2 stars 6 forks source link

Add the `TV` group as a selectable Newznab/Torznab category #27

Closed Callum027 closed 1 year ago

Callum027 commented 1 year ago

TV should be allowed to be specified to Buildarr to enable allowing all TV category types.

Callum027 commented 1 year ago

Tested working.

$ poetry run buildarr sonarr dump-config http://localhost:8990
Sonarr instance API key: 
hostname: localhost
port: 8990
protocol: http
api_key: <snip>
version: 3.0.10.1567
settings:
  media_management:
    rename_episodes: true
    replace_illegal_characters: true
    standard_episode_format: '{Series TitleYear} - S{season:00}E{episode:00} - {Episode
      CleanTitle} [{Preferred Words }{Quality Full}] {[MediaInfo VideoDynamicRangeType]}
      [{MediaInfo VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec}
      {Mediainfo AudioChannels}] {[MediaInfo AudioLanguages]} {[Release Group]}'
    daily_episode_format: '{Series TitleYear} - {Air-Date} - {Episode CleanTitle}
      [{Preferred Words }{Quality Full}] {[MediaInfo VideoDynamicRangeType]} [{MediaInfo
      VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec} {Mediainfo
      AudioChannels}] {[MediaInfo AudioLanguages]} {[Release Group]}'
    anime_episode_format: '{Series TitleYear} - S{season:00}E{episode:00} - {absolute:000}
      - {Episode CleanTitle} [{Preferred Words }{Quality Full}] {[MediaInfo VideoDynamicRangeType]}
      [{MediaInfo VideoBitDepth}bit] {[MediaInfo VideoCodec]} [{Mediainfo AudioCodec}
      { Mediainfo AudioChannels}] {MediaInfo AudioLanguages} {[Release Group]}'
    series_folder_format: '{Series TitleYear} [imdbid-{ImdbId}]'
    season_folder_format: Season {season:00}
    specials_folder_format: Specials
    multiepisode_style: range
    create_empty_series_folders: false
    delete_empty_folders: false
    episode_title_required: always
    skip_free_space_check: false
    minimum_free_space: 100
    use_hardlinks: true
    import_extra_files: false
    unmonitor_deleted_episodes: false
    propers_and_repacks: do-not-prefer
    analyze_video_files: true
    rescan_series_folder_after_refresh: always
    change_file_date: none
    recycling_bin: null
    recycling_bin_cleanup: 28
    set_permissions: false
    chmod_folder: drwxr-xr-x
    chown_group: null
    root_folders:
    - /data/media/shows/4k
  profiles:
    quality_profiles:
      definitions:
        4K Shows:
          upgrades_allowed: true
          qualities:
          - Bluray-2160p
          - name: WEB 2160p
            members:
            - WEBDL-2160p
            - WEBRip-2160p
          - HDTV-2160p
          upgrade_until: Bluray-2160p
    language_profiles:
      definitions:
        English:
          upgrades_allowed: false
          languages:
          - english
          upgrade_until: null
    delay_profiles:
      definitions:
      - preferred_protocol: torrent-prefer
        usenet_delay: 0
        torrent_delay: 1440
        bypass_if_highest_quality: true
        tags: []
    release_profiles:
      definitions:
        Release Sources (Streaming Service):
          enable: true
          must_contain: []
          must_not_contain: []
          preferred:
          - term: /\b(atvp|aptv|Apple TV\+)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 100
          - term: /\b(dsnp|dsny|disney|Disney\+)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 100
          - term: /\b((?<!hbo[ ._-])max)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 90
          - term: /\b(hmax|hbom|hbo[ ._-]max)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 80
          - term: /\b(qibi|quibi)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 80
          - term: /\b(amzn|amazon)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 70
          - term: /\b(nf|netflix)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 60
          - term: /\b(pcok|Peacock TV)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 60
          - term: /\b(pmtp)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 60
          - term: /\b(stan)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 60
          - term: /\b(cc)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(crav(e)?)\b[ ._-]web[ ._-]?(dl|rip)?\b/i
            score: 50
          - term: /\b(dcu)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(hbo)(?![ ._-]max)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(hulu)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(it)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(nlz)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(ovid)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(red)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(sho|showtime)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          - term: /\b(vdl)\b(?=[ ._-]web[ ._-]?(dl|rip)\b)/i
            score: 50
          include_preferred_when_renaming: true
          indexer: null
          tags: []
        P2P Groups + Repack/Proper:
          enable: true
          must_contain: []
          must_not_contain: []
          preferred:
          - term: /(-ABBIE|-AJP69|-APEX|-CasStudio|CRFW|-CtrlHD|-FLUX|\bHONE|-KiNGS|-monkee|NOSiViD|-NTb|-NTG|-PAXA|-PEXA|-QOQ|-RTN|-SiC|T6D|-TOMMY|-ViSUM|-XEPA)\b/i
            score: 1700
          - term: /(3CTWeB|BLUTONiUM|-BTW|-Chotab|-Cinefeel|-CiT|-CMRG|Coo7|-dB|-DEEP|-END|-ETHiCS|-FC|-Flights|-GNOME|-iJP|-iKA|-iT00NZ|-JETIX|-KHN|-KiMCHI|-Kitsune|-LAZY|-MZABI|-NPMS|-NYH|-orbitron|playWEB|PSiG|-ROCCaT|RTFM|-SA89|-SDCC|-SIGMA|-SMURF|-SPiRiT|-TEPES|-TVSmash|-WELP)\b/i
            score: 1650
          - term: /(-DRACULA|SLiGNOME|T4H|-ViSiON|SwAgLaNdEr|-NINJACENTRAL)\b/i
            score: 1600
          - term: /(-deflate|-inflate)\b/i
            score: 1600
          - term: /(repack3)/i
            score: 7
          - term: /(repack2)/i
            score: 6
          - term: /\b(repack|proper)\b/i
            score: 5
          include_preferred_when_renaming: false
          indexer: null
          tags: []
        Low Quality Groups:
          enable: true
          must_contain: []
          must_not_contain: []
          preferred:
          - term: "/(-BRiNK|-CHX|-CTFOH|-d3g|-EVO|-FGT|-GHOSTS|-HiQVE|-iNTENSO|JFF|MeGusta|-NERO|nhanc3|Pahe\\\
              .ph|Pahe\\.in|Pahe|PSA|TBS|-TG|-VIDEOHOLE|-worldmkv|-XLF|-Zero00)\b\
              /i"
            score: -10000
          include_preferred_when_renaming: false
          indexer: null
          tags: []
        Optionals:
          enable: true
          must_contain:
          - /^(?!.*(web[ ]dl|-deflate|-inflate))(?=.*([_. ]WEB[_. ])(?!DL)\b)|\b(-CAKES|-GGEZ|-GGWP|-GLHF|-GOSSIP|-NAISU|-KOGI|-PECULATE|-SLOT|-EDITH|-ETHEL|-ELEANOR|-B2B|-SPAMnEGGS|-FTP|-DiRT|-SYNCOPY|-BAE|-SuccessfulCrab|-NHTFS).*/i
          - /\b(-scene)\b/i
          - /^(?!.*(HDR|HULU|REMUX))(?=.*\b(DV|Dovi|Dolby[- .]?V(ision)?)\b).*/i
          - /\b(-alfaHD|-BAT|-BNd|-C\.A\.A|-Cory|-EXTREME|-FF|-FOXX|-G4RiS|-GUEIRA|-N3G4N|-PD|-PTHome|-RiPER|-RK|-SiGLA|-Tars|-WTV|-Yatogam1|-YusukeFLA|-ZigZag)\b/i
          - /\bAV1\b/i
          must_not_contain:
          - /^(?=.*(1080|720))(?=.*((x|h)[ ._-]?265|hevc)).*/i
          preferred:
          - term: /\b(dv|dovi|dolby[ .]?vision)\b/i
            score: 1500
          - term: /\bHDR(\b|\d)/i
            score: 500
          - term: /\bS\d+\b(?!E\d+\b)/i
            score: 15
          - term: /(-4P|-4Planet|-AsRequested|-BUYMORE|-CAPTCHA|-Chamele0n|-GEROV|-iNC0GNiTO|-NZBGeek|-Obfuscated|-postbot|-Rakuv|-Scrambled|-WhiteRev|-WRTEAM|-xpost)\b/i
            score: -10000
          - term: /(?<!\d\.)(1-.+)$/i
            score: -10000
          - term: /(?<=\bS\d+\b).*\b(Extras|Bonus)\b/i
            score: -10000
          - term: /(\[rartv\]|\[rarbg\]|\[eztv([ ._-]re)?\]|\[TGx\])/i
            score: -10000
          - term: /\s?\ben\b$/i
            score: -10000
          include_preferred_when_renaming: false
          indexer: null
          tags: []
  quality:
    definitions:
      Unknown:
        title: null
        min: 1.0
        max: 199.9
      SDTV:
        title: null
        min: 2.0
        max: 100.0
      WEBRip-480p:
        title: null
        min: 2.0
        max: 100.0
      WEBDL-480p:
        title: null
        min: 2.0
        max: 100.0
      DVD:
        title: null
        min: 2.0
        max: 100.0
      Bluray-480p:
        title: null
        min: 2.0
        max: 100.0
      HDTV-720p:
        title: null
        min: 3.0
        max: 125.0
      HDTV-1080p:
        title: null
        min: 4.0
        max: 125.0
      Raw-HD:
        title: null
        min: 4.0
        max: null
      WEBRip-720p:
        title: null
        min: 3.0
        max: 130.0
      WEBDL-720p:
        title: null
        min: 3.0
        max: 130.0
      Bluray-720p:
        title: null
        min: 4.0
        max: 130.0
      WEBRip-1080p:
        title: null
        min: 4.0
        max: 130.0
      WEBDL-1080p:
        title: null
        min: 4.0
        max: 130.0
      Bluray-1080p:
        title: null
        min: 4.0
        max: 155.0
      Bluray-1080p Remux:
        title: null
        min: 35.0
        max: null
      HDTV-2160p:
        title: null
        min: 85.0
        max: null
      WEBRip-2160p:
        title: null
        min: 85.0
        max: null
      WEBDL-2160p:
        title: null
        min: 85.0
        max: null
      Bluray-2160p:
        title: null
        min: 85.0
        max: null
      Bluray-2160p Remux:
        title: null
        min: 85.0
        max: null
  indexers:
    minimum_age: 0
    retention: 0
    maximum_size: 0
    rss_sync_interval: 15
    definitions:
      1337x (Prowlarr):
        enable_rss: true
        enable_automatic_search: true
        enable_interactive_search: true
        priority: 25
        download_client: null
        tags: []
        minimum_seeders: 1
        seed_ratio: null
        seed_time: null
        seasonpack_seed_time: null
        url: http://prowlarr:9696/1/
        api_path: /api
        api_key: <snip>
        categories:
        - TV
        anime_categories: []
        anime_standard_format_search: false
        additional_parameters: null
      EZTV (Prowlarr):
        enable_rss: true
        enable_automatic_search: true
        enable_interactive_search: true
        priority: 25
        download_client: null
        tags: []
        minimum_seeders: 1
        seed_ratio: null
        seed_time: null
        seasonpack_seed_time: null
        url: http://prowlarr:9696/5/
        api_path: /api
        api_key: <snip>
        categories:
        - TV
        anime_categories: []
        anime_standard_format_search: false
        additional_parameters: null
      Nyaa.si (Prowlarr):
        enable_rss: true
        enable_automatic_search: true
        enable_interactive_search: true
        priority: 15
        download_client: null
        tags: []
        minimum_seeders: 1
        seed_ratio: null
        seed_time: null
        seasonpack_seed_time: null
        url: http://prowlarr:9696/2/
        api_path: /api
        api_key: <snip>
        categories:
        - TV
        anime_categories: []
        anime_standard_format_search: false
        additional_parameters: null
      TorrentGalaxy (Prowlarr):
        enable_rss: false
        enable_automatic_search: false
        enable_interactive_search: false
        priority: 35
        download_client: null
        tags: []
        minimum_seeders: 1
        seed_ratio: null
        seed_time: null
        seasonpack_seed_time: null
        url: http://prowlarr:9696/3/
        api_path: /api
        api_key: <snip>
        categories:
        - TV-OTHER
        - TV-UHD
        anime_categories: []
        anime_standard_format_search: false
        additional_parameters: null
  download_clients:
    enable_completed_download_handling: true
    redownload_failed: true
    definitions:
      Transmission (4K Shows):
        enable: true
        priority: 1
        remove_completed_downloads: true
        remove_failed_downloads: true
        tags: []
        host: transmission
        port: 9091
        use_ssl: false
        url_base: /transmission/
        username: null
        password: null
        category: null
        directory: /data/torrents/shows/4k
        recent_priority: last
        older_priority: last
        add_paused: false
    remote_path_mappings:
      definitions: []
  import_lists:
    definitions: {}
  connect:
    definitions: []
  metadata:
    kodi_emby:
      enable: false
      series_metadata: true
      series_metadata_url: true
      episode_metadata: true
      series_images: true
      season_images: true
      episode_images: true
    roksbox:
      enable: false
      episode_metadata: true
      series_images: true
      season_images: true
      episode_images: true
    wdtv:
      enable: false
      episode_metadata: true
      series_images: true
      season_images: true
      episode_images: true
  tags:
    definitions: []
  general:
    host:
      bind_address: '*'
      port: 8989
      ssl_port: 9898
      use_ssl: false
      url_base: null
      instance_name: Sonarr (4K Shows)
    security:
      authentication: none
      username: null
      password: null
      certificate_validation: enabled
    proxy:
      enable: false
      proxy_type: http
      hostname: null
      port: 8080
      username: null
      password: null
      ignored_addresses: []
      bypass_proxy_for_local_addresses: true
    logging:
      log_level: DEBUG
    analytics:
      send_anonymous_usage_data: false
    updates:
      branch: main
      automatic: false
      mechanism: docker
      script_path: null
    backup:
      folder: Backups
      interval: 7
      retention: 28
  ui:
    first_day_of_week: monday
    week_column_header: day-first
    short_date_format: word-month-second
    long_date_format: day-first
    time_format: twentyfour-hour
    show_relative_dates: true
    enable_color_impaired_mode: false