-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
45 lines (38 loc) · 2 KB
/
constants.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
APP_VERSION=6
api_get_interval=0.1
osu_get_interval=3 # osu site
#oauth url
oauth_url="https://osu.ppy.sh/oauth/authorize?client_id=17410&response_type=code&redirect_uri=https%3A%2F%2Fbobermilk.pythonanywhere.com%2Fosuauth"
# scraper.py endpoints
user_url="https://osu.ppy.sh/users/"
#scrape_pinned=user_url+"{}/scores/pinned?mode={}&limit={}&offset={}"
scrape_top_plays=user_url+"{}/scores/best?mode={}&limit={}&offset={}"
scrape_top_plays_defaultmode=user_url+"{}/scores/best?limit={}&offset={}"
#scrape_first_place=user_url+"{}/scores/firsts?mode={}&limit={}&offset={}"
scrape_favourites=user_url+"{}/beatmapsets/favourite?limit={}&offset={}"
scrape_everything=user_url+"{}/beatmapsets/most_played?limit={}&offset={}"
scrape_ranked=user_url+"{}/beatmapsets/ranked?limit={}&offset={}"
scrape_loved=user_url+"{}/beatmapsets/loved?limit={}&offset={}"
scrape_guest_participation=user_url+"{}/beatmapsets/guest?limit={}&offset={}"
scrape_pending=user_url+"{}/beatmapsets/pending?limit={}&offset={}"
scrape_graveyarded=user_url+"{}/beatmapsets/graveyard?limit={}&offset={}"
osucollector_url="https://osucollector.com/api/collections/{}/beatmapsv2?perPage={}&sortBy=beatmapset.artist&orderBy=asc"
# urls
OSU_API_URL = "https://osu.ppy.sh/api/v2"
OSU_TOKEN_URL = 'https://osu.ppy.sh/oauth/token'
chimu_beatmap_url="https://chimu.moe/d/{}"
osu_beatmap_url="https://osu.ppy.sh/beatmapsets/{}"
osu_beatmap_url_download="https://osu.ppy.sh/beatmapsets/{}/download?noVideo=1"
osu_beatmap_url_full="https://osu.ppy.sh/beatmapsets/{}#{}/{}"
# dicts
gamemode_dict={ "osu":1, "taiko":2, "fruits":3, "mania":4 }
# strings
activity_stop="Stop Downloading"
activity_start="Start Downloading (top to bottom)"
#links
link_discord="https://discord.gg/UG4VHtYzGv"
link_paypal="https://paypal.me/bobermilk"
link_github="https://github.com/bobermilk/osu-assistant"
link_github_releases="https://github.com/bobermilk/osu-assistant/releases"
link_website="https://bobermilk.pythonanywhere.com/osu-assistant"
link_mappers="https://osu.ppy.sh/home/follows/mapping"