mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 18:27:05 +02:00
Merge pull request #22 from Jylpah/staging
add: WoTInspector.get_url_replay_view()
This commit is contained in:
1 file changed
+9
-1
+9
-1
@@ -1413,9 +1413,11 @@ class WoTinspector:
|
||||
URL_WI = 'https://replays.wotinspector.com'
|
||||
URL_REPLAY_LIST = URL_WI + '/en/sort/ut/page/'
|
||||
URL_REPLAY_DL = URL_WI + '/en/download/'
|
||||
URL_REPLAY_VIEW = URL_WI +'/en/view/'
|
||||
URL_REPLAY_UL = 'https://api.wotinspector.com/replay/upload?'
|
||||
URL_REPLAY_INFO = 'https://api.wotinspector.com/replay/upload?details=full&key='
|
||||
URL_TANK_DB ="https://wotinspector.com/static/armorinspector/tank_db_blitz.js"
|
||||
|
||||
URL_TANK_DB = "https://wotinspector.com/static/armorinspector/tank_db_blitz.js"
|
||||
|
||||
REPLAY_N = 1
|
||||
|
||||
@@ -1543,6 +1545,11 @@ class WoTinspector:
|
||||
return cls.URL_REPLAY_LIST + str(page) + '?vt=#filters'
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_url_replay_view(cls, replay_id):
|
||||
return cls.URL_REPLAY_VIEW + replay_id
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_replay_links(cls, doc: str):
|
||||
"""Get replay download links from WoTinspector.com replay listing page"""
|
||||
@@ -1579,6 +1586,7 @@ class WoTinspector:
|
||||
debug("Replay JSON check failed: " + str(json_resp))
|
||||
return False
|
||||
|
||||
|
||||
class BlitzStars:
|
||||
|
||||
URL_BLITZSTARS = 'https://www.blitzstars.com'
|
||||
|
||||
Reference in new issue
Block a user