Loading lostmediafinder/finder.py +6 −8 Original line number Diff line number Diff line Loading @@ -355,23 +355,21 @@ class removededm(YouTubeService): rawraw = None lien = None for lnk in potential_links: async with session.head(lnk, allow_redirects=False, timeout=15) as response: redirect = response.headers.get("location") archived = bool(redirect) or response.status == 200 # if there's a redirect, it's archived rawraw = (redirect, response.status) async with session.head(lnk, timeout=15, allow_redirects=True) as response: archived = response.status == 200 # if there's a redirect, it's archived rawraw = response.status if archived: # No more searching needed, it's archived lien = lnk break if not archived: link = f"https://removededm.com/wiki/{id}" async with session.head(link, allow_redirects=False, timeout=15) as response: redirect = response.headers.get("location") archived = bool(redirect) or response.status == 200 async with session.head(link, timeout=15, allow_redirects=True) as response: archived = response.status == 200 if archived: lien = link ismeta = True rawraw = (redirect, response.status) rawraw = response.status return cls( archived=archived, rawraw=rawraw, available=lien, metaonly=ismeta, comments=False, Loading static/script.js +5 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,11 @@ function finish(vid1) { dataDiv.innerHTML = `<span style="color: red;">Internal server error - this is not your fault, please try again</span>`; return null; } return response.json(); if (response.status === 429) { dataDiv.innerHTML = `<span style="color: red;">You have been rate limited - please slow down</span>`; return null; } return response.body; }) .then((data) => { if (data === null) { Loading Loading
lostmediafinder/finder.py +6 −8 Original line number Diff line number Diff line Loading @@ -355,23 +355,21 @@ class removededm(YouTubeService): rawraw = None lien = None for lnk in potential_links: async with session.head(lnk, allow_redirects=False, timeout=15) as response: redirect = response.headers.get("location") archived = bool(redirect) or response.status == 200 # if there's a redirect, it's archived rawraw = (redirect, response.status) async with session.head(lnk, timeout=15, allow_redirects=True) as response: archived = response.status == 200 # if there's a redirect, it's archived rawraw = response.status if archived: # No more searching needed, it's archived lien = lnk break if not archived: link = f"https://removededm.com/wiki/{id}" async with session.head(link, allow_redirects=False, timeout=15) as response: redirect = response.headers.get("location") archived = bool(redirect) or response.status == 200 async with session.head(link, timeout=15, allow_redirects=True) as response: archived = response.status == 200 if archived: lien = link ismeta = True rawraw = (redirect, response.status) rawraw = response.status return cls( archived=archived, rawraw=rawraw, available=lien, metaonly=ismeta, comments=False, Loading
static/script.js +5 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,11 @@ function finish(vid1) { dataDiv.innerHTML = `<span style="color: red;">Internal server error - this is not your fault, please try again</span>`; return null; } return response.json(); if (response.status === 429) { dataDiv.innerHTML = `<span style="color: red;">You have been rate limited - please slow down</span>`; return null; } return response.body; }) .then((data) => { if (data === null) { Loading