forked from IshanArya/Tidown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.iced.example
More file actions
42 lines (36 loc) · 1.06 KB
/
config.iced.example
File metadata and controls
42 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
config =
username: "" # Enter your username in here
password: "" # Enter your password in here
token: "" # Enter a developer token in here (don't ask me where to get those!)
quality: "HIGH" # Defaults to high as a fail-safe, you can define a custom quality as a parameter
port: 3000
### Path settings
Available modifiers:
- track_id
- track_title
- track_artist
- track_number
- track_album (if album is set)
- album_id
- album_title
- album_artist
- album_date
- playlist_id
- playlist_title
- playlist_creator
###
track_path: "{track_artist} - {track_title}"
album_path: "{album_artist}/{album_title} [{album_date}]/{track_number}. {track_title}"
playlist_path: "{playlist_title}/{track_number}. {track_title}"
#####################
getPrependingPath: ->
"#{__dirname}/download/"
getFilePath: (base) ->
switch base.constructor.name
when 'Track'
config.track_path
when 'Album'
config.album_path
when 'Playlist'
config.playlist_path
module.exports = config