---
id: losslessclub
name: LosslessClub
description: "LosslessClub is a RUSSIAN Private Torrent Tracker for High Quality Music"
language: ru-RU
type: private
encoding: UTF-8
links:
  - https://losslessclub.com/

caps:
  categories:
    1: Audio/Lossless

  modes:
    search: [q]
    music-search: [q, artist]

settings:
  - name: username
    type: text
    label: Username
  - name: password
    type: password
    label: Password
  - name: info_login
    type: info
    label: About LosslessClub Forum versus LosslessClub Tracker
    default: "The <a href=\"https://losslessclub.com/\" target=\"_blank\">LosslessClub Forum</a> credentials are different from the <a href=\"https://losslessclub.com/login.php\" target=\"_blank\">LosslessClub Tracker</a> credentials so if the indexer is giving you 'Error Username or password is incorrect' then you are likely using the Forum credentials to access the Tracker."

login:
  path: takelogin.php
  method: post
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
  error:
    - selector: td.embedded > div.error
  test:
    path: browse.php
    selector: span.bar_user_welcome

search:
  paths:
    - path: browse.php
  inputs:
    search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
    t: all

  rows:
    selector: div#releases-table > table > tbody > tr:has(a.browselink)

  fields:
    category:
      text: 1
    title:
      selector: a.browselink
    details:
      selector: a.browselink
      attribute: href
    download:
      selector: a[href^="download.php?id="]
      attribute: href
    poster:
      selector: img.thumbnail
      attribute: src
    size:
      selector: td:nth-child(5)
    grabs:
      optional: true
      selector: td:nth-child(6) br + span
    seeders:
      selector: td:nth-child(6)
      remove: br + span
      filters:
        - name: regexp
          args: "([\\.\\d]+)\\s+\\|"
    leechers:
      selector: td:nth-child(6)
      remove: br + span
      filters:
        - name: regexp
          args: "\\|\\s*([\\.\\d]+)"
    date:
      selector: td:nth-child(7)
      remove: a, i
      filters:
        - name: replace
          args: ["by", ""]
        - name: append
          args: " +03:00" # MSK
        - name: dateparse
          args: "d/MM/yy zzz"
    description:
      selector: div.tag_list_browse
    downloadvolumefactor:
      text: 1
    uploadvolumefactor:
      text: 1
# Кinokрk releaser v. 2.40.473
