-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
113 lines (102 loc) · 2.99 KB
/
config.py
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
from categories import *
# Add Your Playlist id and its category
PLAYLISTS = [
{
'id': '2fABBrRXVPr2d6UT4S3f2L',
'category': RecentlyPlayed(no_of_tracks_required=30)
},
{
'id': '7rJuai1MjSx0h99zZIK0Je',
'category': Mix(
[
Artist('1mYsTxnqsietFxj1OgoGbG'),
Artist('6IHhDsmQhMdqnKIb2sE41H'),
Artist('6AiX12wXdXFoGJ2vk8zBjy'),
Artist('4zCH9qm4R2DADamUHMCa6O'),
Artist('6CtYzQvENTdGq5LPPsePdV')
],
no_of_tracks_required=50
)
},
{
'id': '6n559itEfTJWdWpQiPZSxE',
'category': Mix(
[
Artist('6M2wZ9GZgrQXHCFfjv46we'),
Artist('5Pwc4xIPtQLFEnJriah9YJ'),
Artist('1Xyo4u8uXC1ZmMpatF05PJ'),
Artist('53XhwfbYqKCa1cC15pYq2q'),
Genre('pop')
],
no_of_tracks_required=50
)
},
{
'id': '5X8TGKcqbaOyeFf2vxg3YJ',
'category': TopMix(no_of_tracks_required=30)
},
{
'id': '1xOBtxXq8zR5azITxc7xDj',
'category': Mix(
[
Artist('1mYsTxnqsietFxj1OgoGbG'),
Artist('6IHhDsmQhMdqnKIb2sE41H'),
Artist('6AiX12wXdXFoGJ2vk8zBjy'),
Artist('6M2wZ9GZgrQXHCFfjv46we'),
Artist('5Pwc4xIPtQLFEnJriah9YJ'),
], no_of_tracks_required=30
)
}
]
# Available categories
# ---------------------
# 1) TopArtist(time_range=TimeRange.long_term, no_of_tracks_required=34)
# 2) TopTracks(time_range=TimeRange.short_term, no_of_tracks_required=22)
# 3) TopMix()
# 4) RecentlyPlayed()
# 5) Mix(
# [
# Artist("7jVv8c5Fj3E9VhNjxT4snq"),
# Artist("6M2wZ9GZgrQXHCFfjv46we"),
# Artist("1Xyo4u8uXC1ZmMpatF05PJ"),
# Genre("pop"),
# Track("0HqZX76SFLDz2aW8aiqi7G"),
# ]
# )
# In Mix you can mix upto 5 parameter like Artist, Genre and Track. Only 5 parameter are allowed
# Example
# CATEGORY = Mix(
# [
# Artist("7jVv8c5Fj3E9VhNjxT4snq"),
# Artist("6M2wZ9GZgrQXHCFfjv46we"),
# Artist("1Xyo4u8uXC1ZmMpatF05PJ"),
# Genre("pop"),
# Track("0HqZX76SFLDz2aW8aiqi7G"),
# ]
# )
### Example Config File:
# PLAYLISTS = [
# {
# 'id': '2bx19B2bwgTf20XWQBxlQo',
# 'category': TopMix(time_range=TimeRange.long_term, no_of_tracks_required=30)
# },
# {
# 'id': '2bx19B2bwgTff20XWQBxlQo',
# 'category': TopArtist(time_range=TimeRange.short_term, no_of_tracks_required=30)
# },
# {
# 'id': '7sLWB2thlLWFcvuExsc77y',
# 'category': Mix(
# [
# Artist('7dGJo4pcD2V6oG8kP0tJRR'),
# Artist('1mYsTxnqsietFxj1OgoGbG'),
# Genre('pop')
# ],
# no_of_tracks_required=20
# )
# },
# {
# 'id': '23ljfjfwfpwjwjfwjfjfjs',
# 'category': RecentlyPlayed(no_of_tracks_required=23)
# }
# ]