Skip to content

Commit

Permalink
Fixed parsing vglive
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Oct 26, 2024
1 parent 72d2678 commit e451893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sausage_bot/util/net_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ async def parse_vglive(url_in):
Parse match ID from matchpage from vglive.no, then use that in an
api call
'''
base_url = 'https://vglive.no/api/vg/events/{}'
tv_url = 'https://vglive.vg.no/api/vg/events/tv-channels?eventIds={}'
base_url = 'https://vglive.vg.no/bff/vg/events/{}'
tv_url = 'https://vglive.vg.no/bff/vg/events/tv-channels?eventIds={}'

_id = re.match(r'.*/kamp/.*/(\d+)/.*', url_in).group(1)
_match_info = await get_link(base_url.format(_id))
Expand Down

0 comments on commit e451893

Please sign in to comment.