Skip to content

Commit 5073824

Browse files
committed
Fix FML /random URL
1 parent 10aa6ff commit 5073824

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Update youtube plugin to use proper contentRating API
2222
- Update mylife.py for website changes
2323
- Fixed handling of colons in core IRC parser
24+
- Fix FML random URL
2425
### Removed
2526
- twitch.py removed due to outdated API and lack of maintainer
2627

plugins/mylife.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@hook.on_start()
1313
async def refresh_fml_cache(loop):
1414
""" gets a page of random FMLs and puts them into a dictionary """
15-
url = "http://www.fmylife.com/random/"
15+
url = "http://www.fmylife.com/random"
1616
_func = functools.partial(requests.get, url, timeout=6)
1717
request = await loop.run_in_executor(None, _func)
1818
soup = parse_soup(request.text)

tests/plugin_tests/test_mylife.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
async def test_mylife(mock_requests):
1111
mock_requests.add(
1212
"GET",
13-
"http://www.fmylife.com/random/",
13+
"http://www.fmylife.com/random",
1414
body="""\
1515
<!DOCTYPE html>
1616
<html lang="us">

0 commit comments

Comments
 (0)