Closed JonasTD closed 1 year ago
This code will retrieve League name by its ID.
def getLeagueFromID(leagueId):
allLeagues = getLeagues()
for league in allLeagues:
if leagueId in league["id"]:
return league["name"]
def getLeagues():
headers = {"Origin": "https://lolesports.com", "Referrer": "https://lolesports.com",
"x-api-key": "0TvQnueqKa5mxJntVWt0w4LpLfEkrV1Ta8rQBb9Z"}
res = requests.get(
"https://esports-api.lolesports.com/persisted/gw/getLeagues?hl=en-GB", headers=headers)
return res.json()["data"].get("leagues", [])
Added in #96
What is your idea?
This is a very minor thing but I personally, as well as a few others often open up the esports website to identify where the last drop came from.
Would be a nice QOL addition to have it be displayed inside the farmer.
Love what you do, stay awesome!
What should happen?
An additional column besides the "Last drop" column; either on left or right to be added. Elsewhere is fine too.
With title "Drop source/origin"
displaying what stream the latest drop originated from.
My request is not a question