Skip to content

Commit 7946dd3

Browse files
committed
Fix error 404, release new version
1 parent ed7067c commit 7946dd3

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "raiplaysound"
77
authors = [
88
{name = "Timendum"}
99
]
10-
version = "0.7.0"
10+
version = "0.7.1"
1111
description = "Podcast generator for RaiPlay Sound"
1212
readme = "README.md"
1313
requires-python = ">=3.12"

src/raiplaysound/single.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ class RaiParser:
6262
verbose Print the output of the processing
6363
"""
6464

65-
session = httpx.Client(timeout=REQ_TIMEOUT) # To reuse connections in all instances
65+
session = httpx.Client(
66+
timeout=REQ_TIMEOUT,
67+
headers={
68+
"User-Agent": "Mozilla/5.0 (Linux; Android 16; SM-A065M Build/BP2A.250605.031.A3) "
69+
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.7499.146 Mobile Safari/537.36"
70+
},
71+
) # To reuse connections in all instances
6672

6773
def __init__(
6874
self,

0 commit comments

Comments
 (0)