idz: fix news url
This commit is contained in:
parent
4b22bd734e
commit
eb10bc2560
@ -1,5 +1,6 @@
|
|||||||
import struct
|
import struct
|
||||||
|
|
||||||
|
from core.utils import Utils
|
||||||
from .base import IDZHandlerBase
|
from .base import IDZHandlerBase
|
||||||
from core.config import CoreConfig
|
from core.config import CoreConfig
|
||||||
from ..config import IDZConfig
|
from ..config import IDZConfig
|
||||||
@ -21,8 +22,10 @@ class IDZHandlerLoadServerInfo(IDZHandlerBase):
|
|||||||
if self.version >= IDZConstants.VER_IDZ_210:
|
if self.version >= IDZConstants.VER_IDZ_210:
|
||||||
offset = 2
|
offset = 2
|
||||||
|
|
||||||
news_str = f"http://{self.core_config.title.hostname}:{self.core_config.title.port}/SDDF/230/news/news80**.txt"
|
t_port = Utils.get_title_port(self.core_config)
|
||||||
err_str = f"http://{self.core_config.title.hostname}:{self.core_config.title.port}/SDDF/230/error"
|
|
||||||
|
news_str = f"http://{self.core_config.title.hostname}:{t_port}/idz/news/news80**.txt"
|
||||||
|
err_str = f"http://{self.core_config.title.hostname}:{t_port}/idz/error"
|
||||||
|
|
||||||
len_hostname = len(self.core_config.title.hostname)
|
len_hostname = len(self.core_config.title.hostname)
|
||||||
len_news = len(news_str)
|
len_news = len(news_str)
|
||||||
|
@ -85,7 +85,8 @@ class IDZServlet(BaseServlet):
|
|||||||
|
|
||||||
def get_endpoint_matchers(self) -> Tuple[List[Tuple[str, str, Dict]], List[Tuple[str, str, Dict]]]:
|
def get_endpoint_matchers(self) -> Tuple[List[Tuple[str, str, Dict]], List[Tuple[str, str, Dict]]]:
|
||||||
return[
|
return[
|
||||||
[("render_GET", "/{game}/{version}/{endpoint:.*?}", {'game': R'S...'})], # TODO: Slim this down to only the news stuff
|
[("render_GET", "/idz/news/{endpoint:.*?}", {}),
|
||||||
|
("render_GET", "/idz/error", {})],
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user