CARVIEW |
Select Language
HTTP/2 200
date: Sat, 02 Aug 2025 00:27:16 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"8a91c1495490cab42de837823d0b9328"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=%2B7SUUNKgB4amcUXLZRqIfrOUd8w97t5Tp6IZU3pX8m6Jkd2NtjjHSr%2BzFB3zMymIIOTVDhCjZ4fIfM4c6cKk%2B6kB4BmtNjDWGkvt9mMhglyrHC1nMoAixuSQbqOagWlSir1vgyyGXJg0cNoOonftRZhAz%2BaQtTYSZb7NV32XvNAbCWKgBmFw%2B9Ac8EXfb7wcSP40lc6etFvgMx9bP8wJhNxj%2FZGWXFp%2Bf76w2%2FjdJF0dsmcQZfkB9AHgA%2BOouKQiLYJPacr%2BFp%2FX%2BbUJzYE8PA%3D%3D--JOG8Rg1tDjWEQq5z--iSD4yH1ygvICGqC4LtjA4Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1274077454.1754094435; Path=/; Domain=github.com; Expires=Sun, 02 Aug 2026 00:27:15 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 02 Aug 2026 00:27:15 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AE58:245171:5D839B:753CFC:688D5B63
stops the demuxer from downloading more if it is already past --end · GitHub
Show Gist options
Save bitingsock/19c3094cc8680bb7b97b09aaf7d11176 to your computer and use it in GitHub Desktop.
{{ message }}
Instantly share code, notes, and snippets.
Last active
July 15, 2023 06:14
-
Star
3
(3)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save bitingsock/19c3094cc8680bb7b97b09aaf7d11176 to your computer and use it in GitHub Desktop.
stops the demuxer from downloading more if it is already past --end
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local maxBytes = mp.get_property("demuxer-max-bytes") | |
local function stopCache() | |
local state = mp.get_property_native("demuxer-cache-state") | |
if state and state["cache-end"] and tonumber(state["cache-end"]) > tonumber(mp.get_property("end")) then | |
mp.set_property("demuxer-max-bytes",0) | |
print("stop") | |
mp.unobserve_property(stopCache) | |
end | |
end | |
local function look() | |
if mp.get_property("end") ~= "none" then | |
maxBytes = mp.get_property("demuxer-max-bytes") | |
mp.observe_property("time-pos", "number", stopCache) | |
end | |
end | |
look() | |
mp.add_key_binding("alt+c", "restore", function() mp.set_property("demuxer-max-bytes",maxBytes); print("continue"); end) | |
mp.add_key_binding("alt+x", "look", look) |
This, of course, relies on the fact that mp.set_property("demuxer-max-bytes",0) doesn't just delete the cache which I would have thought it might. Hopefully this does not change.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t perform that action at this time.
Thank you so much!