-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathconfig.ts
85 lines (75 loc) · 2.24 KB
/
config.ts
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
export const config = {
urls: {
baseUrl: "https://www.jiosaavn.com/api.php",
docsUrl: "https://docs.jiosaavn.rajputhemant.me",
siteUrl: "https://jiosaavn.rajputhemant.me",
},
rateLimit: {
enable: process.env.ENABLE_RATE_LIMIT === "true" || false,
limitedReqCount: +(process.env.LIMITED_REQ_COUNT || 5),
},
endpoint: {
modules: {
launch_data: "webapi.getLaunchData",
browse_modules: "content.getBrowseModules",
},
song: {
id: "song.getDetails",
link: "webapi.get",
recommend: "reco.getreco",
},
album: {
id: "content.getAlbumDetails",
link: "webapi.get",
recommend: "reco.getAlbumReco",
same_year: "search.topAlbumsoftheYear",
},
playlist: {
id: "playlist.getDetails",
link: "webapi.get",
recommend: "reco.getPlaylistReco",
},
artist: {
id: "artist.getArtistPageDetails",
link: "webapi.get",
songs: "artist.getArtistMoreSong",
albums: "artist.getArtistMoreAlbum",
top_songs: "search.artistOtherTopSongs",
},
search: {
top_search: "content.getTopSearches",
all: "autocomplete.get",
songs: "search.getResults",
albums: "search.getAlbumResults",
artists: "search.getArtistResults",
playlists: "search.getPlaylistResults",
more: "search.getMoreResults",
},
radio: {
featured: "webradio.createFeaturedStation",
artist: "webradio.createArtistStation",
entity: "webradio.createEntityStation",
songs: "webradio.getSong",
},
show: {
show_details: "webapi.get",
episodes: "show.getAllEpisodes",
episode_details: "webapi.get",
},
get: {
trending: "content.getTrending",
featured_playlists: "content.getFeaturedPlaylists",
charts: "content.getCharts",
top_shows: "content.getTopShows",
top_artists: "social.getTopArtists",
top_albums: "content.getAlbums",
mix_details: "webapi.get",
label_details: "webapi.get",
featured_stations: "webradio.getFeaturedStations",
actor_top_songs: "search.actorOtherTopSongs",
lyrics: "lyrics.getLyrics",
footer_details: "webapi.getFooterDetails",
mega_menu: "webapi.getBrowseHoverDetails",
},
},
};