Skip to content

J0nan/DeezSpot_bot_docker

 
 

Repository files navigation

DeezSpot_bot

https://hub.docker.com/r/j0n4n/deezspot_bot_docker

Disclaimer

  • I am not responsible for the usage of this program by other people.
  • I do not recommend you doing this illegally or against Deezer's terms of service.
  • This project is licensed under CC BY-NC-SA 4.0
  • PYTHON VERSION SUPPORTED

    Python >= 3.9

  • OS Supported

    Linux Support macOS Support Windows Support

SET UP

Docker Variables:

  • MODE_BOT: (default: 2)

    • 1 -> Test Mode.
    • 2 -> Cool mode.
    • 3 -> Test Mode (No zip).
    • 4 -> Cool Mode (No zip).
  • WARNING_BANNING: (default: 4) number of flooding messaging when to ban a user.

  • USER_ERRORS: (MANDATORY) Chat id where to send users errors.

  • BUNKER_CHANNEL: (MANDATORY) Chat id to use as an archive

  • OWL_CHANNEL: (MANDATORY) Chat id where to listen for announcements to the users

  • ROOT_ID: (MANDATORY) User id to have admin access

  • METHOD_SAVE: (default: 3) Method of the naming schema for the song name. Each user can change it using the /setting command.

    • 0 -> "{album} CD {discnum} TRACK {tracknum}"
    • 1 -> "{songname} - {artist}"
    • 2 -> "{songname} - {artist} [{isrc}]"
    • 3 -> "{discnum}|{tracknum} - {songname} - {artist}"
  • DOWNLOAD_DIR_MAX_SIZE: (default: 6) Directory max size in GB.

  • PROGRESS_STATUS_RATE: (default: 15)

  • TIME_SLEEP: (default: 8)

  • SECONDS_LIMITS_ALBUM: (default: 30000) In seconds

  • SECONDS_LIMITS_TRACK: (default: 7200) In seconds

  • UPLOAD_MAX_SIZE_USER: (default: 2) In GB

  • MAX_SONGS_PER_PLAYLIST: (default: 200) Maximum number of song in a playlist to be downloaded

  • MAX_DOWNLOAD_USER: (default: 3) Maximum parallel downloads per user

  • BOT_NAME: (MANDATORY) Username with the @ of the bot.

  • FORUM: (default: @)

  • ARL_TOKEN: (MANDATORY) Deezer ARL token.

  • EMAIL_DEE: (MANDATORY) Email to log in on Deezer

  • PWD_DEE: (MANDATORY) Password to log in on Deezer

  • SPOTIFY_CLIENT_ID: (default: c6b23f1e91f84b6a9361de16aba0ae17 this is the one included in deezloader): can be created in https://developer.spotify.com/dashboard

  • SPOTIFY_CLIENT_SECRET: (default: 237e355acaa24636abc79f1a089e6204 this is the one included in deezloader): can be created in https://developer.spotify.com/dashboard

  • BOT_TOKEN: (MANDATORY) Telegram bot token
  • API_ID: (MANDATORY) Telegram api id
  • API_HASH: (MANDATORY) Telegram api hash
  • ACRCLOUD_KEY: for acrcloud key look at acrcloud
  • ACRCLOUD_SECRET: for acrcloud secret look at acrcloud
  • ACRCLOUD_HOST: for host look at acrcloud

How to set Spotify credentials

  1. Download the latest version https://github.com/dspearson/librespot-auth from the release tab
  2. Launch using:
    1. Premium: .\target\release\librespot-auth --name LibreSpot
    2. Free: .\target\release\librespot-auth --name LibreSpot --class=computer
  3. Open Spotify app and login
  4. Play a random song and select the LibreSpot as an audio device
  5. Return to the command line and check the filed saved
  6. Modify the credentials.json:
    1. Replace the string "auth_type": 1 with "type":"AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS"
    2. Replace the string "auth_data" with "credentials"
  7. Then map the file to container in /app/credentials/credentials.json
  8. Run the container, it should login with Deezer and Spotify

Where to get some tokens

  • the pyrogram api_id & api_hash can be created here
  • for create a telegram bot look here
  • for acrcloud key, secret, host look at acrcloud
  • If you don't know how to get chat id send messages to him @JsonDumpBot

To obtain your Deezer ARL cookie, you can follow these steps:

  • Firefox:
  1. Open Firefox and go to deezer.com.
  2. Log in to your account
  3. Click the three horizontal lines in the top right corner of the window to open the menu.
  4. Select Tools > Web Developer Tools.
  5. Click the Cookies tab.
  6. Search for the arl cookie and copy the value.
  • Chrome:
  1. Open Chrome and go to deezer.com.
  2. Log in to your account
  3. Click the lock icon in the address bar.
  4. Click Cookies.
  5. Search for the arl cookie and copy the value.

About

This project has been created for integrate deezloader library in a Telegram bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.8%
  • Dockerfile 0.2%