3 Commits 9876413756 ... 0a944adc30

Author SHA1 Message Date
  Lertsenem 0a944adc30 Merge branch 'master' && bump version 9 months ago
  Lertsenem fa729e056d Change smash.gg URLs to start.gg 9 months ago
  Lertsenem 4d983bb080 Fix character position (Sora) 1 year ago

+ 2 - 2
lokrez/__init__.py

@@ -192,7 +192,7 @@ def get_infos_from_url(
192 192
 
193 193
     url_parsed = urllib.parse.urlparse(url)
194 194
 
195
-    if url_parsed.netloc not in [ "smash.gg" ]:
195
+    if url_parsed.netloc not in [ "smash.gg", "start.gg" ]:
196 196
         raise ValueError("Unsupported domain name")
197 197
     if outform not in [ "dict", "lkrz" ]:
198 198
         raise ValueError("Unsupported outform")
@@ -202,7 +202,7 @@ def get_infos_from_url(
202 202
     event = None
203 203
 
204 204
     # -------------------------------------------------------------------------
205
-    if url_parsed.netloc == "smash.gg":
205
+    if url_parsed.netloc in [ "smash.gg", "start.gg" ]:
206 206
 
207 207
         if (url_parsed.path.split("/")[1] != "tournament"):
208 208
             log.error("Incomplete URL '{}'".format(url))

+ 1 - 1
lokrez/smashgg.py

@@ -8,7 +8,7 @@ import requests
8 8
 from .games import ssbu, melee, pplus
9 9
 
10 10
 # =============================================================================
11
-API_HOST = "api.smash.gg"
11
+API_HOST = "api.start.gg"
12 12
 API_ENDPOINT = "gql/alpha"
13 13
 API_SCHEME = "https"
14 14
 API_URL = "{scheme}://{host}/{endpoint}".format(

+ 2 - 2
lokrez/templates/confismash/characters_corrections.j2

@@ -122,8 +122,8 @@
122 122
         "01": (-10, -40),
123 123
         "02": (-50, -60),
124 124
         "03": (30, -20),
125
-        "05": (-50, -60),
126
-        "06": (30, -20),
125
+        "05": (-10, -40),
126
+        "06": (-50, -60),
127 127
         "07": (30, -20),
128 128
     },
129 129
     "squirtle": { "default": (-7, 8) },

+ 2 - 2
lokrez/templates/meltdownlyon2020/characters_corrections.j2

@@ -124,8 +124,8 @@
124 124
         "01": (-10, -40),
125 125
         "02": (-50, -60),
126 126
         "03": (30, -20),
127
-        "05": (-50, -60),
128
-        "06": (30, -20),
127
+        "05": (-10, -40),
128
+        "06": (-50, -60),
129 129
         "07": (30, -20),
130 130
     },
131 131
     "squirtle": { "default": (33, -2) },

+ 2 - 2
lokrez/templates/rebootlyon2020/characters_corrections.j2

@@ -112,8 +112,8 @@
112 112
         "01": (-10, -40),
113 113
         "02": (-50, -60),
114 114
         "03": (30, -20),
115
-        "05": (-50, -60),
116
-        "06": (30, -20),
115
+        "05": (-10, -40),
116
+        "06": (-50, -60),
117 117
         "07": (30, -20),
118 118
     },
119 119
     "squirtle": { "default": (33, -2) },

+ 2 - 2
lokrez/version.py

@@ -9,8 +9,8 @@ AUTHOR_EMAIL = "lertsenem@lertsenem.com"
9 9
 ENTITY_EMAIL = "dev@smashatlyon.com"
10 10
 
11 11
 VERSION_MAJOR = 4
12
-VERSION_MINOR = 1
13
-VERSION_PATCH = 2
12
+VERSION_MINOR = 2
13
+VERSION_PATCH = 0
14 14
 
15 15
 __version__ = "{}.{}.{}".format(
16 16
         VERSION_MAJOR,