aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-08-02 19:13:45 +0200
committerPřemysl Eric Janouch <p@janouch.name>2025-08-02 19:13:45 +0200
commit72ab92d6b87ada709c3b419783b52541e01ef0ed (patch)
tree3f43dc3536ec8fb6eac108fd697ce00d1b7c9535
parent4c2f1d66919c06e7e0c466df2daafa7e49885f24 (diff)
downloadbbc-on-ice-master.tar.gz
bbc-on-ice-master.tar.xz
bbc-on-ice-master.zip
Respond to lstn.lv being renamed to lsn.lvHEADorigin/mastermaster
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 82822e4..8db5732 100644
--- a/main.go
+++ b/main.go
@@ -35,7 +35,7 @@ func get(url string) (resp *http.Response, err error) {
if err != nil {
return nil, err
}
- // lstn.lv returned 403 for the default net.http User-Agent.
+ // lsn.lv returned 403 for the default net.http User-Agent.
req.Header.Set("User-Agent", "bbc-on-ice/1")
return client.Do(req)
}
@@ -197,7 +197,7 @@ func resolveM3U8(target string) (out []string, err error) {
return out, nil
}
-const resolveURI = "https://lstn.lv/bbcradio.m3u8?station=%s"
+const resolveURI = "https://lsn.lv/bbcradio.m3u8?station=%s"
var poolRE = regexp.MustCompile(`/pool_([^/]+)/`)