Rename to NewLeaf
This commit is contained in:
parent
c8b4699922
commit
abd6c8df2f
|
@ -1,11 +1,11 @@
|
||||||
# Second
|
# NewLeaf
|
||||||
|
|
||||||
## Navigation
|
## Navigation
|
||||||
|
|
||||||
- [Project hub][hub]
|
- [Project hub][hub]
|
||||||
- [Announcements][announce]
|
- [Announcements][announce]
|
||||||
- [CloudTube repo][cloudtube]
|
- [CloudTube repo][cloudtube]
|
||||||
- › Second repo
|
- › NewLeaf repo
|
||||||
- [Mailing list][list] for development and discussion
|
- [Mailing list][list] for development and discussion
|
||||||
- [Todo tracker][todo] for listing problems and feature requests
|
- [Todo tracker][todo] for listing problems and feature requests
|
||||||
- [Chatroom on Matrix][matrix]
|
- [Chatroom on Matrix][matrix]
|
||||||
|
@ -41,7 +41,7 @@ AGPL 3
|
||||||
[hub]: https://sr.ht/~cadence/tube/
|
[hub]: https://sr.ht/~cadence/tube/
|
||||||
[announce]: https://lists.sr.ht/~cadence/tube-announce
|
[announce]: https://lists.sr.ht/~cadence/tube-announce
|
||||||
[cloudtube]: https://git.sr.ht/~cadence/cloudtube
|
[cloudtube]: https://git.sr.ht/~cadence/cloudtube
|
||||||
[second]: https://git.sr.ht/~cadence/Second
|
[newleaf]: https://git.sr.ht/~cadence/NewLeaf
|
||||||
[list]: https://lists.sr.ht/~cadence/tube-devel
|
[list]: https://lists.sr.ht/~cadence/tube-devel
|
||||||
[todo]: https://todo.sr.ht/~cadence/tube
|
[todo]: https://todo.sr.ht/~cadence/tube
|
||||||
[matrix]: https://matrix.to/#/#cloudtube:cadence.moe
|
[matrix]: https://matrix.to/#/#cloudtube:cadence.moe
|
||||||
|
|
4
index.py
4
index.py
|
@ -13,7 +13,7 @@ from extractors.captions import extract_captions
|
||||||
def custom_headers():
|
def custom_headers():
|
||||||
cherrypy.response.headers["access-control-allow-origin"] = "*"
|
cherrypy.response.headers["access-control-allow-origin"] = "*"
|
||||||
|
|
||||||
class Second(object):
|
class NewLeaf(object):
|
||||||
def _cp_dispatch(self, vpath):
|
def _cp_dispatch(self, vpath):
|
||||||
if vpath[:4] == ["api", "manifest", "dash", "id"]:
|
if vpath[:4] == ["api", "manifest", "dash", "id"]:
|
||||||
vpath[:4] = ["manifest"]
|
vpath[:4] = ["manifest"]
|
||||||
|
@ -127,7 +127,7 @@ class Second(object):
|
||||||
return r
|
return r
|
||||||
|
|
||||||
cherrypy.config.update({"server.socket_port": 3000, "server.socket_host": "0.0.0.0"})
|
cherrypy.config.update({"server.socket_port": 3000, "server.socket_host": "0.0.0.0"})
|
||||||
cherrypy.quickstart(Second(), "/", {
|
cherrypy.quickstart(NewLeaf(), "/", {
|
||||||
"/": {
|
"/": {
|
||||||
"tools.custom_headers.on": True
|
"tools.custom_headers.on": True
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue